•  

  • Archives

  • Follow me on Twitter


  • « | Home | »

    How to change SID on Windows 7 and Windows Server 2008 R2 using sysprep?


     

    sysprep3 In last post I described how to check SID on Windows 7 and Windows Server 2008 R2, today I’ll describe you how to change SID on Windows Server 2008 R2 and Windows 7 using sysprep. I see many of you are looking how to change SID using NewSID, but New SID is not officially supported by Microsoft. You could use NewSID on Windows Server 2008, but when you try to use it on Windows Server 2008 R2 it won’t work, actually, it will “destroy” operating system. I didn’t test it on Windows 7, but still my advice is to use sysprep. Changing SID using sysprep is also very simple, just follow few steps as described below…

    I tested sysprep on Windows Server 2008 R2 Datacenter edition, but same steps apply for Windows7 also.

    First, click to Start->Run, type sysprep and press OK.

    sysprep1

     

    This will open sysprep folder which is located in c:\Windows\System32. Open sysprep application.

    sysprep2

     

    This will open System Preparation Tool 3.14 window. As a System Cleanup Action select Enter System Out-of-Box Experience (OOBE). Important: select Generalize if you want to change SID, it’s not selected by default. As Shutdown Options select Reboot.

    sysprep3

     

    It will take some time for sysprep to finish, so grab a cup of coffee and wait.

    sysprep4

     

    After rebooting you’ll have to enter some data, for example, Country or region, Time and currency and Keyboard input.

    sysprep5

     

    Also, you’ll have to accept EULA. And that’s it. After booting, in Server Manager you’ll see that everything is changed, if you had some settings set now they’re changed.

    sysprep6

     

    Now you can again use PsGetSid to check that your OS has new SID.

    Do you have some experiences with sysprep? Any advices?

    Related

     


     

    • http://www.brajkovic.info/virtualization/using-newsid-to-change-sid/ Using NewSID to change SID | Windows Server 2008 and Microsoft virtualization blog

      [...] Comments How to change SID on Windows 7 and Windows Server 2008 R2 using sysprep? | Windows Server 2008 and M… on Using NewSID to change SIDHow to change SID on Windows 7 and Windows Server 2008 R2 [...]

    • haas

      You only can sysprep a windows 7 (Enterprise Edition) 3 times, after this its fatal error while syspreping

    • Chris Stewart

      I was reading over this and I was wondering if windows 7 will ever allow you to beable to use newsid. I work at a school and it is much easier to do that instead of this sysprep b/c it takes too long and we have over 500 computers on the server that eventually want to switch them over to windows 7. If you know anything about this. Maybe there is a setting on the computer you can change so that it can run that would also be nice too. Please let me know whenever you get a chance to e-mail me back I would greatly appreciate it.

    • http://www.brajkovic.info/ Ilija Brajkovic

      Hi Chris,

      I don’t know why it’s not supported and why Microsoft is forcing sysprep. I think Mark Russinovich would be the right person to ask that question :-) .
      Of course, if I find some information about other possible ways to change SID, I’ll write a post about it.

      Thank you for your comment.

      Ilija

    • Rakesh

      We tried using sysprep on Windows 2008 R2 core installation from foler c:\windows\system32\sysprep\sysprep.exe. After reboot , we were not prompted to input any data like computer name,etc.

      Can anyone sugget if this is normal.

    • http://www.brajkovic.info/ Ilija Brajkovic

      Hi Rakesh,

      yes, that’s normal.

      Ilija

    • Glenn

      I tried running sysprep on a windows 7 pro installation.
      Now I cant boot the system. It just reboots over and over again.
      Windows is loading for a couple of seconds, then it reboots.

    • ilijabrajkovic

      I have never tried sysprep on Windows 7, and I can't figure out why you have those problems :-( .

    • Jason L.

      I ran sysprep on a Win7 machine as discribed here and the system will not boot into Windows any more. The boot manager comes up every boot and says that “a required device is inaccessible”. Then when telling it to repair or continue booting it just reboots itself into goes back to this error. Constant loop. Any suggestions?

    • ilijabrajkovic

      Hi Jason, I don't know what's going on with sysprep on Windows7. I will definitely have to try it on some virtual Windows 7 and come up with a new post about it.

    • Sardaukarz

      NewSID destroyed my Windows 7 installation. I didn't try to see why and how I will try your method tomorrow. Thnkz

    • ilijabrajkovic

      Sorry to hear that. :-(

      Btw, there is no need to change SIDs, just refer to this article: http://www.brajkovic.info/windows-server-2008/t... .

    • Which way did I go?

      You can't run NewSID on a Windows Server 2008 machine that's been upgraded to R2 (destroys machine). Sysprep only supports clean installations and therefore, you can't use sysprep to change the SID on the same machine. That pretty much leaves you with nothing..

    • http://blog.ghai.us/bob/?p=205 How to change SID on Windows 7 and Windows Server 2008 R2 using sysprep? « My blog, My Precious.

      [...] straight forward stuff, see here.   BTW, I came across a paper by Mark Russinovich (Sysinternals) talking about duplicate SIDs [...]

    • AFX01

      how can i set mannualy the sid? i on't want a random sid

    • afx01

      manually*

    • http://www.brajkovic.info/ Ilija Brajkovic

      I'm not sure you can do it, and I don't see any reason why you want to do it. :-)

    • Shady ElAsra

      I have found your post after a guy from Microsoft sent me the NewSid tool to use with Server 2008 R2 and it kept loading forever. I tried your way, and it worked. Thanks.

    • Karthikeyan Sundaram

      Hey Thanks for your Information Mr.

    • mismis

      I want to change/set a specific SID on Windows 7 x64 computer.
      You said a guy from microsoft sent you the newSID tool to use with Server 2k8 R2, probably works with 7even. Could you please send me
      this new version of newsid tool?
      Thx

    • http://fix.lazyjeff.com/?p=247 LazyJeff How To and Reviews » The Same Machine Security Identifier SID

      [...] – http://www.brajkovic.info/windows-server-2008/windows-server-2008-r2/how-to-change-sid-on-windows-7-... has very clear instructions on how to run SYSPREP (included in [...]

    • Josh Schaa

      Hey I just ran newsid tool on Windows 7 Ent. that was a imaged hdd. It ruined the install, currently reimaging the machine now. Same with the steps here on the Win 7 Ent. I have tried twice, currently reimaging the sysprep machine for the second time.

    • Chax

      Thank you.

    • Mac

      I've just run sysprep sucessfully on a couple of Win7 64-bit Enterprise machines. I've installed Win7 from scratch on the first machine. Then I run sysprep. After reboot, I made an image. I restored the image on multiple machines, same hardware of course. They all boot up nicely, asking me to give the machine a new name and a new user. A little weird thing is that Win7 re-scans all the hardware and re-installs all the drivers from the scratch. It basically did that okay, except that the VGA driver did not get recognized, so on all machines I had to re-install the VGA driver manually.

      Hope this helps.

    • Netmon1

      Thank you, I destroyed a VM by using NewSID, thankfully I had a snapshot I was able to restore to. Doing it this way resolved a SID issue due to me cloning in ESXi since I did not have vCenter Server.

    • Shujjat Shah

      thank you i also want to chang sid by useing sysprep and i have don it,….

    • TMC Support

      For those who are getting the inaccessible boot device after applying an image of Win7: put the Win7 install disk go thru the language setting then when on the install screen click the Repair Windows option. It'll do its thing and after about 5-10 mins Windows (with the functional image OS) will boot. I have had this all 3 times I've tested so far….

    • TMC Support

      My issue so far with Sysprep is what it does to my Default user profile.
      It clears all the customizations and goes back to default.
      That and it takes almost as long as installing from scratch….

    • Phreestyle

      Same issue here. We rebuild our machines all the time from images. And, sysprep is almost as slow as a full install. It also forces to input the product key everytime.

      NewSID was way easier and faster.

    • http://sladescross.wordpress.com/2010/11/03/sysprep/ SysPrep « Sladescross's Blog
    • Lumppek

      Dear Ilija,

      Why are you posting here if you dont have any useful answer?

      Regards,
      Joc

    • Michel_Yerson

      I have many workstations Windows 7 with same SID (2000 wks) :-( what can I do to fix of way silently? any ideas?

    • HP

      Hey Michel, you don’t have to change SID. According to this article machines can have the same SID with no security problem.
      http://blogs.technet.com/b/markrussinovich/archive/2009/11/03/3291024.aspx

    • http://www.best-registrycleaner.net Best Registry Cleaner

      I tried your way, and it worked. Thanks.

    • http://techbirdy.com Diya 2006

      sysprep takes too much time..

    • Sam Maples

      what happens if you use OOBE? Does the SID not get updated?

    • http://www.agilepman.com/2011/03/team-foundation-server-2010-setup/ Team Foundation Server 2010 Setup | v.’s Blog

      [...] I’ve also found sysprep way of changing SID. Running sysprep ended in: ”Setup is starting Services” [...]

    • B. H.

      @151ae491ea11ae2b9b062f101c48ec19:disqus

      Ilija’s answer is correct. You shouldn’t be setting a SID manually. Allow Sysprep (or newsid) to generate a SID rather than trying to generate your own. If the person asking the question could provide a reason why he/she is wanting to set a specific SID, it might allow for a solution, rather than a non-answer.

    • Zack

       The hole SID thing is very weird. Have a look at this article:

      http://blogs.technet.com/b/markrussinovich/archive/2009/11/03/3291024.aspx

      After reading it I tried to skip running newsid.exe on differencing disk and snapshot based virtual machine duplications (I work with Virtualbox and Hyper-V, can’t tell in which of them I tried it) but very soon I ran into troubles. Now I tried to run newsid.exe on 2K8 R2 and as you said, it destroyed the OS. Now I’m runing sysprep.exe.

    • Zack

      This is not supposed to happen. It may be the result off passing the limit of rearming the activation clock, try skipping the rearm as described here:

      http://technet.microsoft.com/en-us/library/ee758033%28WS.10%29.aspx

    • Odissey

      If you use computer with identical SIDs, you may to have troubles in many situations. Scenario for example:
      Both computer are Server 2008 R2, and you dcpromo one of it as a DC for new domain. After that you can’t add second computer as a member server in new domain, because domain and sstandalone computers have the same SIDs

    • Rlunardon

      FOLLOWING THIS ARTICLE SCREWED UP MY COMPUTER AND I LOST EVERYTHING AND NOW I HAVE TO REFORMAT!!! SYSPREP IS GARBAGE AND HAS NOW SET ME BACK WEEKS!!!

    • Rlunardon

      SYSPREP IS STUCK IN A LOOP. AFTER IT RESTARTS IT CONFIGURES HALF WAY THAN SAYS IT NEEDS TO RESTART BECAUSE IT COULDNT APPLY SEETINGS AND DOES THE SAME THING OVER AND OVER!!! AHHHHHHH!!!!

    • Lotharz0r

      I’ve had the same problem on a computer with PreInstalled windows 7 from HP. It works fine on clean installs

    • Sidpost

      Sysprep is crap.  I don’t want to reset the local admin account and all the other garbage.  I’ve already done that.  ALL I WANT IS THE SID TO CHANGE!  Why is that no longer an option?

    • Ferneda

      Tanks, this guide help me to study using duplicated virtual machines in my home.

    • http://www.mactonweb.com seo bangalore

      I ahve used a sysprep a windows 7 enterprise edition more than 3 times, nothing has appeared.

    • http://www.shofkom.com/2011/07/26/my-recommended-1-piece-of-software-every-system-admin-needs-to-have-in-his-arsenal-easeus%c2%ae-todo-backup-technician-25/ My Recommended #1 piece of software every System Admin needs to have in his arsenal: EaseUS® Todo Backup Technician 2.5 | Shofkom’s World of Information Technology

      [...] The ability to “mount” an image to get a single file or folder.  The ability to do a UNIVERSAL RESTORE or HARDWARE INDEPENDENT RESTORE where you can do a sector by sector backup of a system and recover it to a completely different system with completely different hardware.  I have tested this with ALL versions of W2K3 and W2K8 (32/64 as well as R2/non R2) and it worked flawlessly every time.  I have moved and recovered system images not only to different DELL hardware, but also cross platform moving a system image from a DELL server to an HP server, to an IBM server, and all worked flawlessly.  The software appears to do complete system prep and will ask you for any drivers that it can’t find during the initial boot up.  In the 12 test cases I have tried, only once did it ask me for a driver, and I was able to find it via the support.dell.com website.  You will have to reactivate windows and so far as I can tell has not given me any SID problems.  Please see these blog posts on changing SIDS as well as using SID changing software before you attempt to change SIDS in windows: REFERENCE 1 – REFERENCE 2 – REFERENCE 3 [...]

    • Tecno4li

      Hey buddy,

      Please dont go around promoting this solution as a Windows 7 ”Newsid”.
      This does a lot more than Newsid and did not solve my problem. Your lucky I tested this on a lab machine first. This solution wipes out all machine settings and starts from fresh. That is NOT what Newsid did.

    • http://learningexpert.wordpress.com/2011/09/27/windows-vmware-copie-de-vmware-server-2008/ Windows / VMware – Copie de VMware Server 2008 « Learning Expert's Blog

      [...] guide est très utile pour changer le [...]

    • Nexxus6

      Try deleting the c:windowssystem32sysprepunattend.xml file before running sysprep.  

    • http://geciktiricikalem.posterous.com/ geciktirici kalem

      kara çal? gibi girdin aram?za :D

    • Anonymous

      if I find some information about other possible ways to change SID, I’ll write a post about it…

    • Anonymous

      I really appreciate your step by step guide.

    • Anonymous

      hmm, it seems that some kind of network survey will be needed to find out which computer do have duplicate SIDs.
      Ant ideas on how to run a survey that will list “computer name”, “SID”, “survey date and time”

    • Jaguar

      This destroyed my VM, errored out with ‘windows cannot configure for this systems hardware’

    • http://choxblog.wordpress.com/2013/02/10/no-mapping-between-account-names-and-security-id-was-done/ No Mapping Between Account Names and Security ID Was Done « Chox’s Blog

      [...] : http://www.brajkovic.info/windows-server-2008/windows-server-2008-r2/how-to-change-sid-on-windows-7-… Like this:LikeBe the first to like this. Sharepoint, virtual server, Windows Server 2008 [...]

    blog comments powered by Disqus