On itself a straightforward process. Again preparation is key here. Some lessons learned:
- Make sure the logical disk running the Windows installation (normally the C:\ drive) has more then 15 GB of free space (13 GB of free space is the ABSOLUTE minimum);
- When the disk is too small, expand it. After a successful upgrade the disk can be downsized again.
- When a Windows Server 2008 R2 SP1 DC has to be upgraded, prepare it first by inserting the installation media of Windows Server 2012 in to the DC and running these two commands:
- <Installation media>:\support\adprep\adprep /domainprep
- <Installation media>:\support\adprep\adprep /forestprep
- When WSUS is installed, remove it;
- When the server runs VMM 2012 RTM UR#3 Management Server, remove it (retain the database!);
- OM12 SP1 Management Servers continue to function properly after the underlying Server OS upgraded to Windows Server 2012;
- OM12 SP1 Gateway Servers continue to function properly after the underlying Server OS upgraded to Windows Server 2012;
- SQL 2008 R2 SP1 x64 Servers – hosting the OM12 SP1 databases (among other SC 2012 SP1 databases) and SSRS instances – continue to function properly after the underlying Server OS upgraded to Windows Server 2012.
How to get rid of Windows.old folder after the upgrade to Windows Server 2012?
After the server is upgraded to Windows Server 2012 there is an useless folder in the root of C:\, titled Windows.old. This folder is BIG: ranges from 10 GB to 18 GB in size, depending on the role of the upgraded server.
So it’s better to remove that folder, but how? In Windows Server 2008 R2 you had the Disk Cleanup button located in the Properties screen of every logical disk shown in the Explorer. But in Windows Server 2012 this button isn’t present any more by default:
The folder Windows.old is locked by default so it takes some time to gain permissions on ALL those folders found in the main folder Windows.old. So that’s not the way to go.
Gladly in Windows Server 2012 there is a better way: Just get the earlier mentioned button back. How?
- Start PowerShell on the related Windows Server 2012 machine;
- Enter: Install-WindowsFeature Desktop-Experience and hit <ENTER>;
- It will run for some minutes and report when ready;
- Reboot the server, the feature will be installed and initialized while rebooting. This takes some minutes as well;
- After the server is fully functional again the button Disk Cleanup is back again:
- Hit the button and after the scan it will show you the option to remove the Windows.old folder, Previous Windows installation(s):
- > OK > Delete Files
- It will run for some minutes:
- After a while the Windows.old folder is deleted.
- When required, the PS-cmdlet Remove-WindowsFeature Desktop-Experience will remove this feature again from your server.
Now you can shrink the volume through the Computer Management console. Afterwards you can compact the disk by using Hyper-V Manager.
Windows Server 2008 R2 SP1 is so 2012 . But seriously, servers running OM12 SP1 Management Server roles, OM12 SP1 Gateway Servers and SQL Server 2008 R2 SP1 instances can be upgraded to Windows Server 2012. Again preparation is key here. TechNet provides an excellent starting point for good information about this upgrade process.