Tag Archives: Windows

Windows 8 and Microsoft VPN problems

Today i have the problem where a Windows 8 machine, won’t connect to Microsoft VPN server.

The problems was that MSChapV2 was disabled on the client.
Please find this under Security and Allowed these protocols.

The error message I got from both the VPN servers and the client was:

Server:
The following error occurred in the Point to Point Protocol module on port: VPN2-9, UserName: XXXXX\XX. The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the RAS server and notify them of this error.

Client:
Error 815: The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the RAS server and notify them of this error.

Please see more here: http://jermsmit.com/windows-8-vpn-error-812/

Citrix XenDesktop – Desktop Popsup with connection and then closes

Today i have this problem, that my brand new setup of XenDesktop just start and showing connecting, but just after a few seconds just drop the connection, and the VDI is restarting.

So I push the connect buttom and when it shows connecting, i put the machine in maintaince mode, so it is not restarting automatic.

Then look at the Event Viewer, and it was showing this error:
Source: Citrix ICA Service
Event ID: 1260
Type: Warning
Description: ICA connection is cancelled because auto-logon is enforced and auto-logon failed.
For more information, see
http://support.citrix.com/proddocs/topic/online-plugin-121-windows/ica-sson-enable.html.

When look at the support.citrix.com page I got a 404 error page.

Search the Internet and found at that my user account dosent was permitted to logon locally, enable this though Group Policy
Group Policy here: Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment -> Allow log on locally

By default the following users and groups are granted to log on locally on windows 7:
Guest
Administrators
Users
Backup Operatiors

Microsoft CRM failed to install

Microsoft CRM Outlook Client Connector has the Visual C++ 2010 x86 Redistributable as a dependancy.

It will automaticaly install the Visual C++ 2010 x86 Redistributable when you install Microsoft CRM outlook Client connector, but it may failed with:
Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100. Result: Asia.

in Danish:

Installationen af Microsoft Visual C++ Runtime mislykkedes. Afslutningskode: 5100. Resultat: Asien

 

If you try to download and install Microsoft Visual C++ Runtime 2010 manual, you get a better error messages:
A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.

Just remove  Microsoft Visual C++ Runtime 2010 from Programs in Control Panel and try to install it again

Lost trust on my Exchange 2010 after revert to a older snapshot

I was returing to an older snapshot of my Exchange servers. But when i want to logon to the Exchange server, it came with “Trust relationship has been lost with domain controller”.

Normally you just rejoin the domain, but this is not a good idea, when there is installed Exchange services on it.

I fix this with netdom.
Logon to the Exchange with a locally logon account.
Start command with Administrator rights
Type: netdom /RESETPWD /server:DOMAINCONTROLLER /UserD:DOMAINNAME\ACCOUNTNAME /PasswordD:PASSWORD OR *

There is not enough space available on the disk(s) to complete this operation

When you want to resize the disk in Windows 7, server 2008 or server 2008 R2, you might get this warning:

Error: there is not enough space available on the disk(s) to complete this operation

This could be fixed by the following guides:

  1. Right click on my computer
  2. Click on Manage
  3. Goto storage
  4. Click on Disk management
  5. Right click on disk management and click on rescan disks
  6. Try to resize the disk again

Change SQL Collation

Steps for chaning Collation:

  1. Take backup of Databases and logins.
  2. Detach all databases execpt system databases. (All users databases)
  3. Find the SQL server installation path (Root of the CD)
  4. Run this command:
    Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLServer /SAPWD=Qwerty123 /SQLSYSADMINACCOUNTS=”administrator” /SQLCollation=SQL_Scandinavian_Cp850_CS_AS

/QUIET – Run it as a sillent installation

/action – We are running rebuilddatabase to change the server collation

/Instancename – withs instance do you want to change collation on.

/SAPPW -SA password for this instance

/SQLSYSADMINACCOUNTS – An administration account, normally the run you are running this from. The user should be administrator of the SQL Server

/SQLCollation – withs collation should you change to.

 

Terminal server, Redirected folders and PDF Creator problems

Today i have installed the programs PDF Creator on a Terminal servers, Windows 2008 R2. But it will only run under the administrators account.

Some search for errors lead me to that it could be that PDF Creator creates is temp files under <temp>\PDFCreator, but my user have redirected folders, so it was under a network shares. It seams that PDFCreator have some troubles with this, so I change the temp location in the registry database, and its now working for my users.

You need to change:

KEY_CURRENT_USER\Software\PDFCreator\Program\PrinterTemppath
“PrinterTemppath”=”<temp>PDFCreator\”

Changed the value to “C:\PDFCreator\”

Change also:
HKEY_USERS\.DEFAULT\Software\PDFCreator\Program\
“PrinterTemppath”=”<temp>PDFCreator\

Changed the value to “C:\PDFCreator\”

Then create a folder on c:\ with the name of PDFCreator, and set security so that all yours terminal servers users have modify access to this folders.

 

 

Windows 7 / Office 2010 get serial key from registry

For personale use only, use this programs:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/siw-setup.exe

With this programs you can get the Serial key from you installed Windows 7 or Office 2010:

http://kennethdalbjerg.dk/wp-content/uploads/2012/02/produkey.zip

The product is code by:

ProduKey v1.53
Copyright (c) 2005 – 2011 Nir Sofer
Web Site: http://www.nirsoft.net/utils/product_cd_key_viewer.html

It can get the serial for this products:

* Microsoft Windows 98/ME
* Microsoft Windows 2000
* Microsoft Windows NT
* Microsoft Windows XP
* Microsoft Windows Vista
* Microsoft Windows Server 2003
* Microsoft Windows 7 (Works only for some of the Windows 7 versions,
see the known problems section)
* Microsoft Office 2000 (Only ProductID is displayed)
* Microsoft Office 2003
* Microsoft Office 2007
* Microsoft Office 2010
* Microsoft SQL Server 2000
* Microsoft SQL Server 2005
* Microsoft Exchange Server 2000
* Microsoft Exchange Server 2003

 

Known Problems
==============

* When running produkey.exe, Some Antivirus programs displays an alert
and/or block you from running it. Click here to read more about false
alerts in Antivirus programs
* For some Windows 7/2008 licenses, the product key is not stored in
the Registry, and thus ProduKey cannot retrieve them. In these cases,
ProduKey will display ‘Product key was not found’ in the product key
column.
* If you bought your computer with installed operating system, you may
find the Windows product key appeared in ProduKey utility is different
from the product key on your Windows CD. This problem is mostly
reported with Dell computers.
* From unknown reason, the product key of Visual Stuido .NET is written
in the Registry as Office XP product…
* In old versions of Office (Office 2000 and below), the ‘Product Key’
value is not available.