Friday, February 1, 2013

How to upgrade Windows Server 2008 R2 from Standard to Enterprise Edition without media

Open a command prompt and enter the command:
DISM /online /Get-CurrentEdition
to find the current server edition.
After that enter the command:
DISM /online /Get-TargetEditions
to find the editions that your system can be upgraded to.
Finally enter the command
DISM /online /Set-Edition:ServerEnterprise /ProductKey:XXXX-XXXX-XXXX-XXXX-XXXX
to upgrade to enterprise version. Of course you must use your real enterprise product key.
If you have a KMS to activate your windows server then you can use the known KMS client key, so the command becomes:
DISM /online /Set-Edition:ServerEnterprise /ProductKey:489J6-VHDMP-X63PK-3K798-CPX3Y
For more information read the following article.
There is a possibility that after this upgrade procedure the system does not allow you to use memory above 4 GB and the allow remote desktop check box is disabled. In this case use the following procedure to fix this problem:
Open a command prompt
Type slmgr.vbs -ckms (this clears any KMS entry you have)
Type slmgr.vbs -upk (this removes any product key installed)
Type slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (where the x’s is the new enterprise product key you will use)
Type slmgr.vbs -ato (this activates the server)
After this you must restart the server, so that you can utilize memory above 4 GB and to enable remote desktop check box in system properties.

How to convert a Windows Server 2012 Core to a Windows Server 2012 GUI installation

From the command line we start powershell:
start powershell
Optionally we set a system proxy if we don't have a direct internet connection:
netsh winhttp set proxy proxy.company.com:3128
Then we enter this command so that the actual conversion take place:
Install-WindowsFeature server-gui-mgmt-infra,server-gui-shell
If we can't access the install files from the Internet  then we can use the installation dvd:
Insert installation dvd to the drive and enter the command
Get-WindowsImage -ImagePath D:\Sources\Install.wim
where D: is the dvd drive letter
From there we find the index number of the windows server installation image we have. Using this information we can enter the command
Install-WindowsFeature server-gui-mgmt-infra,server-gui-shell -Source wim:d:\sources\install.wim:2
where 2 is the index number of the installation image we have on our server.
Finally we must restart our server using the powershell command
Restart-Computer
After the restart our server becomes a full gui installation.
To reset the proxy server settings we must enter the command
netsh winhttp reset proxy