Sunday, June 7, 2015

How to fix the issue of duplicate SID

You might have faced the issue of duplicate SID in your VMware or physical environment where you are using cloning/deploy from template/Image as a method to provision new systems.

Using Sysprep you can fix the issue of duplicate SID (NewSID wont work with 2008R2), follow these steps to generate a new SID:
  • Open Sysprep from Run => Sysprep or  by going to, "C:\Windows\System32\sysprep" and execute Sysprep by double clicking on Sysprep.exe

  • Ensure ‘System Out-of-Box Experience (OOBE)’ is selected and Tick the ‘Generalize’ option (this resets the SID) and Select ‘Reboot’ from the Shutdown Options.

Once you will click ok, it will take some time for sysprep to finish and then system will reboot.
(You can do the same in one go using this command "C:\Windows\System32\sysprep\sysprep /oobe /generalize /reboot")

After reboot you will have to enter some data, for example, Country or region, Time and currency and Keyboard input and you are done.

To ensure not to face duplicate SID issue prepare the OS using Sysprep before converting it to Template, Clone or Image.

Prior to taking your clone/image or converting to Template, just remember to use Sysprep as follows,
  • Run Sysprep, C:\Windows\System32\Sysprep\Sysprep.exe
  • Ensure ‘System Out-of-Box Experience (OOBE)’ is selected  and Tick the ‘Generalize’ option and Select ‘Shutdown’ from the Shutdown Options. 

(You can do the same in one go using this command "C:\Windows\System32\sysprep\sysprep /oobe /generalize /shutdown")
Once the machine has shutdown, convert it to Template/Image or Clone and you are good to go!

Note: One can check the SID of a system using PsGetSid. To use PsGetSid first you have to download it, then extract it from the archive PsTools (for example on your desktop) and from Command Prompt navigate to that folder,
C:\Desktop\PsTools\psgetsid COMPUTERNAME, where computername is the name of your computer.

That's it... however take a look at KB article 1005593 too for the issue of: When a virtual machine is deployed from a template and despite the fact that you chose the option to generate a new SID during template deployment and guest operating system customization the SID is always the same.........

Reset WSUS Authorization and get new WSUS SID ............2

No comments:

Post a Comment