Properly Sysprep a Guest VM running Windows Server 2012 / Windows 8.x and later

Along with the release of Windows 8 & Server 2012, Microsoft introduced a new command line switch for generalizing Virtual Hard Disks (VHD) . This new command switch is the ” /mode:vm “.

Before we create/or properly configure a cloned guest vm we need to run the following commands from an elevated command prompt.

  1. Navigate to c:\windows\system32\syprep directory.cd_sysprep
  2. Run the commnad “sysprep /generalize /oobe /mode:vm /shutdown”  ( using this command your system will reset its SID, shutdown the system and it will be flagged to start in OOBE mode during the next powercycle  ).sysprerp
  3. Optionally the command above can be used with the /unattend switch along with an answer file in order to automate the sysprep process according to our needs ( for example set regional settings, account, Time Zone, set license key ).

Additional information can be found in the links below:

https://technet.microsoft.com/en-us/library/hh825033.aspx

https://technet.microsoft.com/en-us/library/hh824849.aspx.

[sgmb id=”2″]

George Markou

My Name is George Markou, IT Pro, Geek and Fancy Gadgets enthusiast. I am focused on Virtualization and Cloud Technologies.

%d bloggers like this: