Slashdot Mirror


The Machine SID Duplication Myth

toppings writes "Microsoft Technical fellow Mark Russinovich explains why he is now retiring NewSID, which has been used by IT departments for years when deploying Windows to new systems from customized clone images. Russinovich writes: 'The reason that I began considering NewSID for retirement is that, although people generally reported success with it on Windows Vista, I hadn't fully tested it myself and I got occasional reports that some Windows component would fail after NewSID was used. When I set out to look into the reports I took a step back to understand how duplicate SIDs could cause problems, a belief that I had taken on faith like everyone else. The more I thought about it, the more I became convinced that machine SID duplication — having multiple computers with the same machine SID — doesn't pose any problem, security or otherwise. I took my conclusion to the Windows security and deployment teams and no one could come up with a scenario where two systems with the same machine SID, whether in a Workgroup or a Domain, would cause an issue. At that point the decision to retire NewSID became obvious.' He concludes: 'It's a little surprising that the SID duplication issue has gone unquestioned for so long, but everyone has assumed that someone else knew exactly why it was a problem. To my chagrin, NewSID has never really done anything useful and there's no reason to miss it now that it's retired. Microsoft's official policy on SID duplication will also now change and look for Sysprep to be updated in the future to skip SID generation.'"

201 comments

  1. fp by Anonymous Coward · · Score: 4, Funny

    Maybe slashdot should get rid of the dupe sids, too.

    1. Re:fp by UnknownSoldier · · Score: 0

      Ha!

      Mod up funny. Although the dupes kind of are one of the running jokes around here.

    2. Re:fp by Anonymous Coward · · Score: 0

      But... that would tear a hole in the space-time continuum! Its not meant to be!

    3. Re:fp by Anonymous Coward · · Score: 0

      best first post in a long time

    4. Re:fp by commodore64_love · · Score: 1

      Personally I prefer the oldSID: http://www.lemon64.com/music/

      Recommended starting point: MUSICIANS/H/Huelsbeck Chris/R-Type
      Also; MUSICIANS/H/Hubbard Rob

      --
      "I disapprove of what you say, but I will defend to the death your right to say it." - historian Evelyn Beatrice Hall
    5. Re:fp by Anonymous Coward · · Score: 0

      Mark has lost all credibility (and creativity) after he joined MSFT.

      He recently wrote that "Alex Ionescu now teaches Windows".

      Now I understand why ReactOS development has stalled.

      Too bad MSFT does not use all these talents to make better products. Crunching the competition to stay the only one will not survive the crisis.

      When you see that TrustLeap *in user-space* is beating IIS *in the kernel* you understand how inefficient MSFT is at developing technologies -despite hiring talented people.

      When you see plain ANSI C scripts (from G-WAN web server) beating ASP.Net C# by a factor 5, you understand where MSFT's priorities are.

      Having spent 20 of my life with Windows, I am just tired of Windows. Linux may be squared at some places -but it can be improved. The same is not true with MSFT.

    6. Re:fp by linu77 · · Score: 1

      IBM tivoli goes nuts with duplicats Ids

  2. Except for Domain Controllers.. by tensop · · Score: 2, Informative

    I found that unless you change the SID on a computer before becoming a (virtual or otherwise) windows Domain Controller, it will cause all sorts of issues. That is, at least in windows 2000 and 2003.

    1. Re:Except for Domain Controllers.. by rfunches · · Score: 2, Informative

      Agreed...when I was reading up for one of the Server 2008 AD MCTS exams, I cloned a base VM image of Server 2008 to simulate two DCs, a file server, an IIS/application server, etc. I had to download and run NewSID because every server I joined to the domain (i.e. the "primary" DC) had problems getting joined correctly. I don't recall the specifics but Server 2008 did throw a hissy fit and I had to run NewSID on each VM prior to joining before I could do anything else.

    2. Re:Except for Domain Controllers.. by mysidia · · Score: 5, Informative

      It's not for domain controllers in general it's for the very first domain controller used to initialize a brand new domain. You want to never create a new server with that same SID again. The first domain controller's SID is special, it will be used to generate the domain SID. From then on, all subsequent domain controllers promoted in the domain will have the same machine SID.

      So you're good if you create the very first DC with a unique install, and clone all your other servers from an image.

      As I said earlier, there’s one exception to rule, and that’s DCs themselves. Every Domain has a unique Domain SID that’s randomly generated by Domain setup, and all machine SIDs for the Domain’s DCs match the Domain SID. So in some sense, that’s a case where machine SIDs do get referenced by other computers. That means that Domain member computers cannot have the same machine SID as that of the DCs and therefore Domain. However, like member computers, each DC also has a computer account in the Domain, and that’s the identity they have when they authenticate to remote systems. All accounts in a Domain, including computers, users and security groups, have SIDs that are based on the Domain SID in the same way local account SIDs are based on the machine SID, but the two are unrelated.

      ...

      issue is if a distributed application used machine SIDs to uniquely identify computers. No Microsoft software does so and using the machine SID in that way doesn’t work just for the fact that all DC’s have the same machine SID.

    3. Re:Except for Domain Controllers.. by shaitand · · Score: 1

      Yup

    4. Re:Except for Domain Controllers.. by Anonymous Coward · · Score: 0

      Yeah, I had this bite me just last week. I created a Windows Server 2008 VM. I cloned it and made it a domain controller. I then took the original VM and joined it to the domain. That machine was really messed up and domain authorizations were failing; for example, no domain admin user could have Admin rights on the client machine. The client machine just would not recognize the domain rights. I then of course realized I forgot to change the SID and then all was okay with the Universe.

    5. Re:Except for Domain Controllers.. by Anonymous Coward · · Score: 0

      Yeah, I was going to say, because I ran into this before. You definitely need a different SID for the member machine.

  3. Well... it WAS a problem... by flydpnkrtn · · Score: 2, Insightful

    I know for a fact that WSUS (Windows Server Update Services... basically a centralized patch server) would do "weird, interesting" things when two machines tried to check into WSUS with the same SID. Not sure if they've resolved the problem in later versions of WSUS...see this thread for an example: http://www.neowin.net/forum/lofiversion/index.php/t343182.html

    I thought that the problem was defined as being based around locking a specific machine down with Group Policy... when two machines have the same SID, AD had a hard time distinguishing them for security reasons, much as if two users' SIDs collided...

    But who am I to question the great creator of psexec and psinfo, Lord Russinovich :-)

    1. Re:Well... it WAS a problem... by ErMaC · · Score: 3, Interesting

      There are several other software packages with a similar problem. Microsoft SMS is a big one, as well as most McAfee Enterprise Virus scan products.
      I think Mark's saying this to conveniently avoid updating his software to work with Windows Vista/Windows 7 =)

      --
      "I want to get more into theory, because everything works in theory." -John Cash
    2. Re:Well... it WAS a problem... by flydpnkrtn · · Score: 2, Funny

      I got that impression from the post as well.. "Umm I haven't tested it with NT 6.0 er Vista, and I don't really feel like testing it with NT 6.1 er 'Windows 7,' so we're just gonna retire the thing..."

    3. Re:Well... it WAS a problem... by fan+of+lem · · Score: 5, Informative

      Did you mean the SusClientId? AFAIK this is the only identifier WSUS uses to distinguish between computers (they also don't have to be on the same domain).

      On new clones you only need to delete the SusClientId key under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate; the update service will take care of assigning the machine a new ID.

    4. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      That was my first thought too. Clients with the same SID is still a problem with the latest WSUS. At a minimum the admin discovery won't recognize multiple machines with the same SID as unique machines so depending on the update time, random machines won't get a patch because the server think it already got it.

    5. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 2, Informative

      It is a common misconception that duplicate SIDs create the issue where multiple PCs check in as the same PC (with a rolling name) in WSUS. The WSUS ID is in fact stored here: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate]

      as the SusClientId and SusClientIdValidation keys.

      It can and should be reset independently of SIDs to have PCs correctly check-in to WSUS

    6. Re:Well... it WAS a problem... by pyite · · Score: 3, Interesting

      I know for a fact that WSUS (Windows Server Update Services... basically a centralized patch server) would do "weird, interesting" things when two machines tried to check into WSUS with the same SID.

      I don't even work with Windows servers and I happen to know this from engineering some network infrastructure (load balancing) for the folks in our organization who do manage WSUS. Long story short, what they thought was problematic load balancing across WSUS servers was actually the same SID being used from 1,000+ cloned VMs. WSUS thought they were one machine.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    7. Re:Well... it WAS a problem... by Anpheus · · Score: 1

      This seems strange because it manages multiple domain controllers fine, and they all have the same SID.

    8. Re:Well... it WAS a problem... by gslavik · · Score: 2, Informative

      Add Sophos enterprise to that list.

    9. Re:Well... it WAS a problem... by pyite · · Score: 1

      So the behavior observed in our case was the clients get updated, but WSUS thinks only 1 client ever connected.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    10. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      WSUS has it own "WSUS-SID" per client.

    11. Re:Well... it WAS a problem... by gotpaint32 · · Score: 2, Informative

      As fan of lem mentions, the issue you state only happens if the wsus regkey is present. The regkey can only be present if you image a machine that has registered with WSUS. Best practice is to make sure that the machines that you image does not have any group policies applied to it.

      --
      Nuclear war would really set back cable. - Ted Turner
    12. Re:Well... it WAS a problem... by nabsltd · · Score: 4, Informative

      This is absolutely correct.

      Identical machine SIDs and WSUS identifiers (stored in the registry) don't stop the updates from being applied...they just cause the WSUS reports to show only the details for the last cloned machine that connected.

    13. Re:Well... it WAS a problem... by Macfox · · Score: 1

      I was under the impression this was the case. I found even after syspreping a machine, if the WSUS keys were not cleared, it wouldn't register with the WSUS server. The fix is to stop the WU service, clear the keys then sysprep....So I found anyway.

      --
      Area51 - We are watching...
    14. Re:Well... it WAS a problem... by jimicus · · Score: 1

      This is absolutely correct.

      Identical machine SIDs and WSUS identifiers (stored in the registry) don't stop the updates from being applied...they just cause the WSUS reports to show only the details for the last cloned machine that connected.

      Oh good. So if Machine A fails to apply a patch for whatever reason and machine B comes along 5 minutes later with exactly the same SID but gets on fine.... you'll never know about machine A?

    15. Re:Well... it WAS a problem... by rikkards · · Score: 1

      With SMS I don't think it was the SID but the SMS GUID where you have issues. An example is if there are more than one machine with the same SMS GUID and one of them is in a direct membership collection and assigned the package, both will get the advertisement.

      I don't see the point in NewSID (never heard of it before either but I will have to see what it does) When imaging you should be running sysprep, there is a lot more that it does than just blow away the SID.

    16. Re:Well... it WAS a problem... by rikkards · · Score: 1

      Yep. ITMU and SMS is the same thing.

    17. Re:Well... it WAS a problem... by rikkards · · Score: 1

      Catch is if you ever need to call Microsoft they would tell you that isn't a supported fix. We had a similar issue with ITMU last year where workstations were not getting a SUSClientID at all and I mentioned that and the tech (nice guy) informed me not to do that although it had worked there was a bigger issue. Basically the problem was that the WindowsUpdateAgent exe that introduces ITMU has a bug that if the DLL is same or newer it will not reregister the DLL after installation unless you used the /force (/f?) switch

    18. Re:Well... it WAS a problem... by Squeakstar · · Score: 1

      i was going to post the exact same experience with WSUS actually - though i never saw anything which would cause havoc i would see the entry on the WSUS server for those particular computers with same SID never ever appear except just the one which constantly changed it's name depending on who booted up last... those were the days before i got MCSA'd up :)

    19. Re:Well... it WAS a problem... by jtdennis · · Score: 1

      At least the last few McAfee Enterprise antivirus products have generated a unique sid and stored it in the registry (I think somewhere around HKLM\Software\Network Solutions\ePolicy Agent)

      --
      -- "Freedom is the right of all sentient beings" -Optimus Prime
    20. Re:Well... it WAS a problem... by Some+Bitch · · Score: 2

      Oh good. So if Machine A fails to apply a patch for whatever reason and machine B comes along 5 minutes later with exactly the same SID but gets on fine.... you'll never know about machine A?

      No. If Machine A fails to apply a patch for whatever reason and machine B comes along 5 minutes later with exactly the same WSUS ID but gets on fine you'll never know about machine A. WSUS ID and SID are not the same thing. Failure to properly sysprep your image (or at least manually delete the key) is what causes the issues people are describing, nothing to do with the SID whatsoever.

    21. Re:Well... it WAS a problem... by Petaris · · Score: 1

      I don't have an issue with Sophos Endpoint Security and I have never changed my SIDs. Many people told me that it would break things but I never ran into an issue and always questioned why it had to be done.

      --
      ~Petaris "The world is open. Are you?"
    22. Re:Well... it WAS a problem... by FictionPimp · · Score: 1

      Yep, we had this problem. I wrote a quick script to delete these keys and regen new ones. The problem was quickly solved.

    23. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      There is a unique SUS ID as well as the SID, both *must* be unique for things to work properly.

      I am mindboggled that M$ would be killing NewSID, we use it every single day and without it there is no doubt you -will- encounter the dreaded "trust relationship has failed" when they collide in the domain....

    24. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      Yep ran into a problem with McAfee ePO where 12 systems at a site would pop in and out as rogue systems, it took me a little while to figure out the local help desk just copied an imaged system 12 times.

      SMS is another one, try pushing software to two systems with the same sid.

    25. Re:Well... it WAS a problem... by Darth_brooks · · Score: 4, Informative

      I ran into this same issue. I've now got a batch script that runs at first logon (post-reimaging) that resets the client ID. Probably overkill at this point (the bad image that was causing this has long since been redone), but it ensure that every machine checks in with a fresh key.

      net stop wuauserv
      reg delete "HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Windowsupdate" /v SusClientId /f
      net start wuauserv
      wuauclt.exe /resetauthorization /detectnow

      That does require a more windows update client (the old wuauclt only accepted a couple of options, including detectnow, and ignored the reset. If you typed wuauclt.exe /gogetmeabeerandasteak it wouldn't throw an error, it just looked like it ran).

      There's a distinct difference between the SID and the SusClientID.

      --
      There are some people that if they don't know, you can't tell 'em.
    26. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      The local machine SID isn't used by SMS or SCCM to do anything. SMS and SCCM generate GUID's for each computer object, and yes, if you have two computer objects with the same GUID you would have problems, however those GUID's are generated by the SMS and SCCM servers, not the local machine, so in other words, duplicate machine sid's won't break SMS or SCCM.

    27. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      I concur and also 2nd the thoughs about McAfee(enterprise) products having issues. Newer versions coinciding with running newsid on all new deployments has made the issue moot however.

    28. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      When some geniuses decided to image 500 machines with the same ghost image at my work, SMS refused to patch any of them until the SIDs were changed...

    29. Re:Well... it WAS a problem... by Anonymous Coward · · Score: 0

      It works so far and i use it in production on my 2008/vista machines. just have to remove a single registry key that causes an infiniate loop.

      I have no idea what they are thinking as if your stuck in a domain with reduced functionality mode(2k3 or earlier, dunno about 2k8) you defenitly need unique sids.

      --

      newsid is awesome program it does just what it is suppose to. Stupid sysprep touches to many things and messes up my server clones.

    30. Re:Well... it WAS a problem... by Cramer · · Score: 1

      SusClientID not SID. WSUS identifies a machine based on a self-generated ID completely independent of the machine/domain SID. It won't change until the registry key is deleted.

    31. Re:Well... it WAS a problem... by nabsltd · · Score: 1

      No. If Machine A fails to apply a patch for whatever reason and machine B comes along 5 minutes later with exactly the same WSUS ID but gets on fine you'll never know about machine A.

      Although you are correct about the SUSClientID being in the registry (as I hinted before), the behavior you state generally will not happen with identical SUSClientIDs.

      What will happen is that Machine A will fail to patch in some way, then Machine B will succeed, then Machine A will keep trying and reporting, so you generally won't know what happened to Machine B, which won't report again until about 22 hours later (the default contact time for WSUS, but you can control this with GPO).

  4. WSUS needs unique SIDs by Anonymous Coward · · Score: 0

    At least in my experience.

    1. Re:WSUS needs unique SIDs by beav007 · · Score: 1

      WSUS makes up its own SIDs. As long as you don't have two computers with the same SUSClientId, you're fine.

  5. Go Figure by Anonymous Coward · · Score: 5, Insightful

    This is coming from the same company that billed my employer to the tune of $250,000 USD in order to create a utility that would move a user profile from the old location to the new one after the user account had been moved to a new NT domain.

    And then we found the moveuser.exe utility on the server resource kit and asked them what the $250,000 was for. Not that anyone who pays two hundred and fifty thousand dollars for a few lines of vbscript is smart (the phbs wanted something bonafide), but I'm just sayin'...

    1. Re:Go Figure by kestasjk · · Score: 1

      I think God just takes the piss out of artists and software developers when it comes to work vs reward.

      --
      // MD_Update(&m,buf,j);
  6. 42 by Anonymous Coward · · Score: 2, Insightful

    So if SIDs are mostly irrelevant, why bother with them at all? Why not just always have them the same number (e.g., 42)?

  7. ID by pete-classic · · Score: 1

    How is it an ID if reuse in the same context has no ill effects? What does it mean to identify something if all things can have the same ID?

    Something is missing here.

    -Peter

    1. Re:ID by riff420 · · Score: 1, Funny

      Obviously SOMETHING needs to go in that text input box. Duh!

    2. Re:ID by pete-classic · · Score: 2, Funny

      Very nice.

      Bill Cosby did a bit, "Why is there Air?" He's well known for being a Doctor of Education, but as an undergrad he was a Physical Education major. His mock reaction to this fact, "Ha, ha. Phys. Ed. You're dumb."

      He relates the story of attending a Philosophy class where the titular question is posed. He comically states his surprise at the question. Something like, "Any Phys. Ed. major can tell you that. To fill up footballs, and volley balls, and soccer balls!"

      You stand in fine comedic company!

      -Peter

    3. Re:ID by JustOK · · Score: 2, Funny

      I had to take Golf Ball Inflation six times before I passed.

      --
      rewriting history since 2109
    4. Re:ID by Anonymous Coward · · Score: 0

      I like Bill Cosby too, but his doctorate is honorary.

    5. Re:ID by Dahan · · Score: 2, Informative

      He has (numerous) honorary doctorates, but he earned his Ed.D.

    6. Re:ID by ckaminski · · Score: 1

      That's the dumbest excuse for wanting to go down on a guy I've ever heard. :-)

    7. Re:ID by JustOK · · Score: 1

      Sounds like you don't need an excuse to go down on a guy...

      --
      rewriting history since 2109
    8. Re:ID by ckaminski · · Score: 1

      touche!

    9. Re:ID by JustOK · · Score: 1

      touche!

      ewwwww!!!!!

      --
      rewriting history since 2109
  8. Duplicate UIDs by l2718 · · Score: 2

    So the "best practice" for MS-Windows was to randomly generate UIDs to avoid user accounts on different machines from having the same UID? This would have made sense had NFS been common, where indeed duplicate UIDs are an issue. But windows does not support NFS mounts -- and SMB mounting is based on a local account on the remote machine. There must be some subtlety here, or else why has this taken years to figure out?

    1. Re:Duplicate UIDs by RAMMS+EIN · · Score: 3, Insightful

      The "subtlety" here is that Windows is extremely complex. I don't think anybody knows exactly how it works. Given that, it is hard to determine conclusively whether something can cause problems or not. Without that knowledge, it is best to err on the safe side.

      --
      Please correct me if I got my facts wrong.
    2. Re:Duplicate UIDs by SpaceLifeForm · · Score: 1

      I've always concluded that Windows can cause problems.

      Does not matter what subsystem or module apparently.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    3. Re:Duplicate UIDs by BitZtream · · Score: 1

      Just for reference, all my NT servers are happy to speak NFS, Windows Services for Unix or whatever the new name for it is after Win2k3.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    4. Re:Duplicate UIDs by Anonymous Coward · · Score: 0

      Maybe it's just taken MS this long to realize they could break Samba by doing this...

    5. Re:Duplicate UIDs by tb3 · · Score: 1

      The "subtlety" here is that Windows is needlessly complex.

      There, fixed that for you. :-P

      --

      www.lucernesys.comHorizon: Calendar-based personal finance

    6. Re:Duplicate UIDs by Panaflex · · Score: 1

      The "subtlety" here is that Windows is needlessly complex

      I believe the correct description is "a vain attempt to obfuscate the true meaning of certain security details, which were chosen over provable, known-good techniques."

      But I'm just a security software developer, what would I know?

      --
      I said no... but I missed and it came out yes.
    7. Re:Duplicate UIDs by Anonymous Coward · · Score: 0

      Well, Why dont companies like Symantec (Ghost) chime in, I mean SID's had to be reset going back to NT 3.51, before Symantec bought the Company that made the ghost imaging software. So I wonder, what would be the reason, back then, and if those scenarios are still relevant today.

  9. It's the usual story by dbIII · · Score: 5, Funny

    A ggreat deal of Microsoft security is unfortunately just like the underwear of Brittany Spears.
    If it's even there at all it's needlessly complex and frilly, looks good without actually covering much and is far too easy to get around or remove completely.
    The excessive complexity for no good reason of the SID and the way UIDs are implemented on that array of platforms are a good example of this.

    1. Re:It's the usual story by flydpnkrtn · · Score: 5, Funny

      Based on this post, I move that we change the default Slashdot analogy model from cars to one based around celebrity wardrobe malfunctions. This was simply awesome sir

    2. Re:It's the usual story by Anonymous Coward · · Score: 0

      That's one nipple medallion of an idea.

    3. Re:It's the usual story by jkrise · · Score: 2, Funny

      Thanks for a good laugh, Sir! But at least in Britney's underwear, it covers something useful.

      --
      If you keep throwing chairs, one day you'll break windows....
    4. Re:It's the usual story by humphrm · · Score: 3, Funny

      Or, its covering of something is useful.

      --
      -- "In order to have power, I must be taken seriously." -Mojo Jojo
    5. Re:It's the usual story by hitmark · · Score: 1

      more like covering something used...

      --
      comment first, facts later. http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm
    6. Re:It's the usual story by dzfoo · · Score: 1

      I'm impressed. You certainly put a lot of thought into that comparison.

              Cheers!
              -dZ.

      --
      Carol vs. Ghost
      ...Can you save Christmas?
    7. Re:It's the usual story by MasterOfGoingFaster · · Score: 1

      A ggreat deal of Microsoft security is unfortunately just like the underwear of Brittany Spears.

      Not crazy about this analogy. After all, one is known to harbor viruses and infections, and the other..... uh.... never mind.

      --
      Place nail here >+
    8. Re:It's the usual story by Anonymous Coward · · Score: 0

      I have to take issue with your analogy.

      Microsoft security

      That is a bad thing.

      looks good without actually covering much and is far too easy to get around or remove completely.

      That is a good thing.

    9. Re:It's the usual story by Gramie2 · · Score: 1

      covering something used fully...

    10. Re:It's the usual story by Anonymous Coward · · Score: 1, Funny

      A ggreat deal of Microsoft security is unfortunately just like the underwear of Brittany Spears.

      No...Microsoft relies on security through obscurity.

    11. Re:It's the usual story by tsm_sf · · Score: 1

      aaaaand we're done.

      --
      Literalism isn't a form of humor, it's you being irritating.
    12. Re:It's the usual story by Anonymous Coward · · Score: 0

      I'm certainly done.

  10. Hmm... Pretty sure I ran into an issue somewhere by davidbrit2 · · Score: 1

    I distinctly remember having problems joining two Windows 2003 VMs (using copied disk images) to a Windows 2003 domain (also running on a VM using that same copied disk image). I was setting up a test environment for SQL Server 2005 clustering at the time. I recall there was a very specific reason that I ended up using NewSID on those VMs. Anybody able to jog my memory/correct me?

  11. With an important caveat! by derinax · · Score: 5, Informative

    "As I said earlier, there’s one exception to rule, and that’s DCs themselves. Every Domain has a unique Domain SID that’s randomly generated by Domain setup, and all machine SIDs for the Domain’s DCs match the Domain SID. So in some sense, that’s a case where machine SIDs do get referenced by other computers. That means that Domain member computers cannot have the same machine SID as that of the DCs and therefore Domain. However, like member computers, each DC also has a computer account in the Domain, and that’s the identity they have when they authenticate to remote systems. All accounts in a Domain, including computers, users and security groups, have SIDs that are based on the Domain SID in the same way local account SIDs are based on the machine SID, but the two are unrelated."

    The low ramifications of this as mentioned above may have changed post Win2K and XP. This particular caveat governed our processes as system deployment specialists for Microsoft corporate events. We had to make sure that any potential DC had a unique SID even before the machines were promoted to DC, otherwise we saw (verifiably!) many issues with Workstations failing to join the domain. I seem to recall other more esoteric issues with older Microsoft server products, but that may be delusions based on the mass hysteria we had about unique SIDs at the time.

    1. Re:With an important caveat! by mysidia · · Score: 5, Interesting

      I think there's an elegant, simple solution to this.

      Microsoft should incorporate NewSID into the DCPROMO utility, and force generation of a new SID as part of the process of initializing a new domain (even if it means that another reboot will be required).

      Since it's the only case where a DC needs to have a unique SID.

      And domain creation is certainly an extra special case. Most potential DCs won't ever be used to perform the initial creation of a windows domain: in general, only 1 DC per domain is supposed to ever have that privilege over the entire lifetime of the Windows-based LAN, which usually means only 1 server per organization will actually ever need to have had a unique SID.

    2. Re:With an important caveat! by gollito · · Score: 1

      I know for a fact that this is an issue with Server 2008 and Exchange 2007. I had a client that cloned all their 2k8 servers from a single image and after they put it into production their Exchange server suddenly stopped authenticating users. Turns out it was a SID related issue. Working with Microsoft support they had me try the NewSID app, which didn't work, so I was left with unjoining the server from the domain, sysprep'ing it, and then joining it backup. This was after 3 days of trying everything else before taking this drastic step. Had the NewSID app worked properly I would have been done within the first hour of working with MS tech support.

    3. Re:With an important caveat! by alexschmidt · · Score: 2, Interesting

      I run VMWare at a college and we typically have the students run a scenario of Primary and secondary DC's. Unless we used NewSID, we had problems. The weird part was, it was intermittent. Some students would create multiple copies of the same image and had no problems, others would have nothing but grief unless they used NewSID.

    4. Re:With an important caveat! by DangerousDriver · · Score: 5, Informative

      Here's what happens when a DC and member server are both cloned from the same base image with identical SIDs:

      Event Type: Error
      Event Source: NETLOGON
      Event Category: None
      Event ID: 5516
      Date: 04/11/2009
      Time: 08:52:35
      User: N/A
      Computer: SERVER01
      Description:
      The computer or domain SERVER01 trusts domain TESTDOMAIN. (This may be an indirect trust.) However, SERVER01 and TESTDOMAIN have the same machine security identifier (SID). NT should be re-installed on either SERVER01 or TESTDOMAIN.

      For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    5. Re:With an important caveat! by Chang · · Score: 3, Informative

      NewSID changes the machine SID

      Unjoining and rejoining changes the domain SID

      They aren't the same thing and MS support should have told you that.

  12. Oh, right... that. by tverbeek · · Score: 3, Interesting

    For what it's worth, using NewSID (or some other technique to accomplish the same thing) was too much trouble to do the first time when push came to deadline and I had to crank out a few hundred WinXP workstations for the college labs. I didn't have any problems. Never gave it another thought.

    --
    http://alternatives.rzero.com/
  13. Anon E. Moose by Anonymous Coward · · Score: 0

    I personally on recently had found this one. I'm dead set against virtualization when computing power is so cheap and folding@home or seti@home or similar needs more!

    Anyway. I had vista issues. Literally identical virtuals and host. Host remained the default SID. Both vista had this run on it. 1 totally blubbered. The other worked well enough to call success. Had to go use sysprep to fix it.

    More recently server 2008 and server 2003 issues. newsid worked fine for me. Everyone else had issues. All requiring sysprep.

    So inevitably it comes down to... why not update sysprep and use that instead? Or even... upgrade the issue of SIDs themselves?

  14. Not Convinced by Anonymous Coward · · Score: 0

    I have observed problems with duplicate SIDs on a small Windows domain (10-15 computers).
    The set of workstations with the duplicate SIDs were constantly having issues printing to the shared printer.
    The problems were intermittent, and the shared printer would work for a long time before the problem happened.
    This never happened on any of the systems with unique SIDs.

  15. It is no myth by blake1 · · Score: 3, Insightful

    Speaking from experience, having two machines with the same SID on a single Domain you will have issues related to the computer account in Active Directory. Remove one of these computers from the Domain and the others will experience Netlogon errors and various other issues as a result. Although NewSID may no longer be relevant due to lack of Vista/2008/7/2008R2 support, you should always sysprep /generalize to prevent these issues from occuring. Not too sure why an MS blogger would have this stance, I've seen it numerous times (10+) with my own eyes. The fix is to either perform an offline workgroup join and generate new SID's on all but 1 affected machine, or to remove machines, NewSID all but one, and rejoin the Domain.

    1. Re:It is no myth by jarocho · · Score: 1

      Sysprep and NewSID are very different tools, which ultimately lead to very different conclusions for the machine(s) either are applied to. I've never used sysprep when NewSID would suffice.

      I think retiring NewSID is shortsighted. As folks here have already indicated, WSUS is the prime example I can immediately point to. I'm sure there are others. Perhaps Russinovich has never worked with load-balanced servers built from the same clone/image/template, which end up in different WSUS groups (Night A versus Night B, and so on). But in the absence of NewSID or a replacement, the task of separating one from the other becomes a lot more of a challenge than it has to be. What a shame.

    2. Re:It is no myth by cantcomplain · · Score: 1

      AD SID and machine SID are different. If you join a system to the domain and then clone it, you'll have two identical *domain* SIDs and problems related to that. If you RTFA and comments, they're talking about having duplicate *machine* SIDs. If machineA connects to machineB, it uses either credentials from the domain or the destination system, so MachineB having a duplicate SID as the MachineA isn't relevant because they're not being compared or checked against each other.

    3. Re:It is no myth by Anonymous Coward · · Score: 0

      WSUS doesn't use the SID as the ID from everything I can see, we have had duplicates and it is caused by a WSUS client ID being duplicated in imaging and is easily fixed through deleting the registry entry for it.

    4. Re:It is no myth by Chang · · Score: 1

      There is so much mythology around the word SID I think people need to read up.

      WSUS uses a different unique identifier called the WSUSClientID - you can and should reset this. It's not the SID.

    5. Re:It is no myth by Anonymous Coward · · Score: 0

      Actually, With Win 2k3 R2, this is incorrect. You can happily have as many machines with the same SID and it will not affect the AD memberships. This however is NOT the case with pre-R2. I know this because I had to deal with this exact scenario a few months ago. Won't work on pre-R2, will work post R2. Something changed there that stopped the problems with the same SID.

    6. Re:It is no myth by Archangel+Michael · · Score: 1

      Bingo.

      This is exactly my experience as well. Here is a test for all those who want to see it in action.

      Take a normal Dell workstation, remove the Serial # from the bios (leave blank) on two machines, and RIS both, in sequence, using completely identical processes.

      Once the second one is RISed compare the RISed computer's name for each computer.

      RIS uses the SID for the computer in AD to match the computer's name. Machines that are RISed retain their unique name based on that supposedly useless SID.

      Suffice it to say, the article itself is in error.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    7. Re:It is no myth by Anonymous Coward · · Score: 0

      I can confirm this, it happened to me. However, I know this only happens if you forget to remove the machine from the domain before cloning; you should never clone a machine already connected to the domain. Just remove the machine from the domain before cloning and you'll be fine, same SIDs and all. You can then add/remove each machine from the domain without affecting the others, as many times as you want, since each one will get a new domain ID when they join.

      [zybex - can't login here]

    8. Re:It is no myth by jarocho · · Score: 1

      And what do you think the SUSClientID is based on, which causes it to be a duplicate in the WSUS database in the first place? It's the SID. The SUSClientID registry value doesn't exist until a computer is pointed at WSUS and made a WSUS client. WSUS bases the uniqueness of clients on the SID, because what else could it use, and why else would you ever have duplicate SUSClientID's if it weren't basing the initial database entry on the SID? Ipso facto, duplicate SIDs are the root cause of clients not appearing uniquely in WSUS.

      But yes... for anyone who's taking their IT advice from /. posts... in a scenario in which two or more computers have identical SID's, even after you change those SIDs, if you've already introduced those computers to WSUS, you will still need to delete the SUSClientID and then run wuauclt.exe /resetauthorization /detectnow, and all will be well. Also, if you are one of these sysadmins who follows or has already followed the above steps, I applaud you for seeking to address the root cause of the problem, rather than just working around it. You will likely go far in your career with this approach. In fact, you're probably working a lot harder than some of your co-workers, and should talk to your boss about a raise. :)

  16. I've had problems by Deathlizard · · Score: 1

    I ran into problems in the past.

    When windows 2000 was first released, at my old job we did a complete deployment of Win200 on an NT4 server domain not knowing anything about sysprep or SID's. Every once in awhile we noticed that machines would randomly freeze for no reason. Looking on the net we found other people running into the same issue and found that resetting the SID's would fix the issue. After running sysprep on all of the PC's in the labs, the freezing stopped completely. We then just used sysprep at image completion time to deploy and never had a problem since.

    At some point, SID's may have been used for legacy domains. There is a chance that Active Directory Domain's removed SID importance and that's why it doesn't matter anymore.

    1. Re:I've had problems by parlancex · · Score: 1

      Correlation is not causation. Sysprep does a number of other things with a large impact on the system and registry, regenerating the system SID is just one of them. Where I work we were deploying sysprep'd images for our workstations which was increasing setup times and causing a few other issues. I insisted on setting up our images sans sysprep and that SID duplication was not an issue in any practical sense for workstations. Fast-forward 3 years later and we've deployed hundreds of workstations across dozens of domains in the same forest and issues are nowhere to be found.

    2. Re:I've had problems by rikkards · · Score: 1

      This is correct.
      Where I work we had a bunch of local admins who were pushing out File and Print Servers but not sysprepping. What they would do is bring the machine online and then rename it. As far as they were aware everything was working fine. However, we were also monitoring the servers through SNMP and their dns name was always coming up as the original machine so all of a sudden there were about a dozen machines all named the same. We contacted them and they sysprepped the boxes and everything turned out rosey.

  17. In other words... by jkrise · · Score: 5, Insightful

    Microsoft is now my employer, and I have no reason to cater to the needs of the user community anymore.

    --
    If you keep throwing chairs, one day you'll break windows....
    1. Re:In other words... by heffrey · · Score: 1

      He's been at ms for a while now sysinternals still going strong and I reckon it's far better having him on the inside than on the outside.

  18. Isn't it ridiculous? by Anonymous Coward · · Score: 1, Interesting

    Isn't it ridiculous? A guru working for MS says "OK, we finally figure out we don't understand what's going on, after all these years"

  19. Finally validation! by shemp42 · · Score: 3, Funny

    I have said this for years, glad its finally being widely accepted. My coworkers when ghosting machines would be fanatical about changing the SId's. I have a bad memory and would often forget to change them with no problems. I finally just started skipping the step of changing SID's and never had any adverse issues. When I told me coworkers about this they would rattle off a liteny of problems that I "could" encounter. After 10 years its nice to know I was right all along. So now a drum roll please...... IN YOUR FACE....MY COWORKERS!

    1. Re:Finally validation! by bigstrat2003 · · Score: 1

      Your "in your face" message might be more effective if you delivered it to your co-workers, rather than the internet. :P

      --
      "16MB (fuck off, MiB fascists)" - The Mighty Buzzard
  20. Man with a hammer by NoYob · · Score: 3, Funny

    And then we found the moveuser.exe utility on the server resource kit and asked them what the $250,000 was for. Not that anyone who pays two hundred and fifty thousand dollars for a few lines of vbscript is smart (the phbs wanted something bonafide), but I'm just sayin'...

    A company was having a problem with one of their machines, so they called in this specialist. The specialist came in, examined the machine, pulled out a hammer and tapped the machine. The specialist then produced a bill for $1,000. When asked why he was charging $1000 for just tapping he machine with a hammer, the specialist replied, "You're paying for me to know where to tap the machine with the hammer."

    The bill was paid.

    --
    It's NOT me! It's the meds! I'm on 1000mg of Fukitol.
    1. Re:Man with a hammer by norpy · · Score: 3, Funny

      I believe the anecdote is this:

      There was an engineer who had an exceptional gift for fixing all things mechanical. After serving his company loyally for over 30 years, he happily retired. Several years later the company contacted him regarding a seemingly impossible problem they were having with one of their multimillion-dollar machines. They had tried everything and everyone else to get the machine to work but to no avail. In desperation, they called on the retired engineer who had solved so many of their problems in the past. The engineer reluctantly took the challenge. He spent a day studying the huge machine. Finally, at the end of the day, he marked a small "x" in chalk on a particular component of the machine and said, "This is where your problem is." The part was replaced and the machine worked perfectly again.

      When the company received a bill for $50,000 from the engineer for his service, they demanded an itemized accounting. The engineer responded briefly: One chalk mark $1. Knowing where to put it $49,999. The bill was paid in full, and the engineer retired again in peace.

  21. Good to finally have confirmation! by KingRobot · · Score: 1

    I too, have known this for a while... I've been running three pairs of Domain Controllers that are exact clones of each other (apart from the network name), for the last 6-7 years. While I had read the occasional documentation that claimed it would cause problems, I never experienced any, nor could I found anything that would say what the problems might be or how they would be caused. Good to know my intuition and testing held out to be true!

  22. Re:Hmm... Pretty sure I ran into an issue somewher by alexschmidt · · Score: 1

    Absolutely correct! I use VMWare images of Win2k Server et al and we had to use NewSID to avoid problems. Your images have one SID so when you try and run multiple copies, (especially with a Parent/Child DC's) you get problem. For us, it happened about 50% of the time. For some reason, some students could make all kinds of copies of Win2kserver, run them and have no problems.

  23. I seem to remember ... by Anonymous Coward · · Score: 0

    that it DOES make a difference when REMOVING a PC from a domain, at least 2000 or XP machines. We didn't run newsid at first and found that by removing ONE PC from the domain it removed them ALL from the domain even when the PC names where different.

    Things might of changed with a 2K3 / 2K8 domain with Vista and WIn 7 clients.

    1. Re:I seem to remember ... by Chang · · Score: 1

      Domain SID doesn't equal the machine SID

      He is talking about the machine SID.

      Having duplicated domain SIDs is still a problem.

  24. Great. by Wumpus · · Score: 4, Insightful

    Doesn't it bother anyone else that even Microsoft doesn't have a clue how the OS they developed works anymore? That something like this is even an issue?

    1. Re:Great. by Anonymous Coward · · Score: 1, Insightful

      No, not at all. Despite the Borg icon, employees of Microsoft do not share a collective mind. Different people understand different parts of the system; nobody or almost nobody understands it all. Every large company is the same way.

    2. Re:Great. by osu-neko · · Score: 1

      Doesn't it bother anyone else that even Microsoft doesn't have a clue how the OS they developed works anymore? That something like this is even an issue?

      Par for the course. Welcome to the tech world. At most companies there's a bunch of stuff running that no one who currently works there knows how it works, they're working of the notes of the people who left, who made those notes while trying to figure out how it works, after the generation before them already quit...

      Suddenly the part of Foundation where planets are just working to maintain stuff they don't understand doesn't seem so far fetched...

      --
      "Convictions are more dangerous enemies of truth than lies."
    3. Re:Great. by Wumpus · · Score: 4, Insightful

      But not every product is equally complex. I can't think of a feature that's critical to the proper basic administration of a Unix network that's equally poorly understood, to the point that it's considered news when someone figures it out after 10 years.

      The feeling I often get when developing for Microsoft's platform is that it is gratuitously complex. Complex APIs are routinely replaced with new, more complex ones. API calls that take a dozen or so arguments, with some of them pointing to structures containing dozens of members, return error codes that complain of a bad argument - good luck finding out which one of the 30 or so the system found to be offensive. Bugs go unfixed for years. It's all rather unpleasant, really.

    4. Re:Great. by Anonymous Coward · · Score: 0

      I get the same feeling when using Linux. I find that X.org crashes apparently at random and I try to run some full screen games and I happen to lost all my data (i.e. gnome apps that were running - crash). But dont worry ! the kernel didnt crash ! so it all must be fine !

      Linux just feels an inferior clone of unix (hell, is there anything that linux distros wont copy from earlier successful proprietary software?) and held together by duct tape..

      Now if you're a competent user you might be able to pull it off. Seeing as how its only successful in the server space - where dedicated professionals are maintaining the system - and a failure in the desktop space - where you don't get competent people operating the system - shows how poorly integrated it is for average users.

    5. Re:Great. by 0ld_d0g · · Score: 1

      The feeling I often get when developing for Microsoft's platform is that it is gratuitously complex.

      What Microsoft platform are you talking about? Win32? DirectX? XNA? .NET? F#? MFC? ATL? WPF? PowerShell? Silverlight?

      Those are just APIs anyway. The "Microsoft platform" here is meaningless. The Operating system just sends machine opcodes from compiled binaries to the processor and doesn't care which tools you used to create the binary. (Yes .NET type languages have another translation abstraction from bytecode to machine instructions but its essentially the same)

      The process by which you get compiled code is determined by which toolset you use, which language, which library, runtime etc, etc. So whats you're beef here?

      That every developer tool (whether its written by Microsoft or others) and programming library and language that can be used to create a compiled binary file on windows is "gratuitously complex"? I wont be so bold as to presume you are stupid enough to make that claim, but what you said sounded to me like you are not basing your opinions on rational thought.

    6. Re:Great. by Anonymous Coward · · Score: 0

      The problem being that a lot of the essential stuff is now only understood by people who are either 6 feet under or probably retired in isolation somewhere. Which leads to dumbass stuff like the "let's replicate all the bugs because we're not sure how the code does it" tags in ooxml.

    7. Re:Great. by that+this+is+not+und · · Score: 1

      I think it was a general indictment of the Closed Source approach to software development and maintenance. When faced with an unknown binary, there's not a heck of lot you can do but poke away at it hopefully.

      The process by which you get compiled code is determined by which toolset you use, which language, which library, runtime etc, etc. So whats you're beef here?

      The process is key. That's what every modern business expert will tell you. And do you know what the documentation of the process for a piece of software is? Do you? It's the Source Code. Yes, that includes the Makefile and documentation of the toolchain used for the build.

      When businesses figure this out, slop slingers like the boys in Redmond are in deep trouble.

    8. Re:Great. by Anonymous Coward · · Score: 0

      What Microsoft platform are you talking about? Win32? DirectX? XNA? .NET? F#? MFC? ATL? WPF? PowerShell? Silverlight?

      Win32, I'd imagine, since it's the platform from Microsoft that's in discussion.

      The "Microsoft platform" here is meaningless.

      He didn't say 'the microsoft platform', he said 'microsoft's platform'. That is, one of (presumably many) platforms to come from Microsoft.

    9. Re:Great. by 0ld_d0g · · Score: 1

      When faced with an unknown binary, there's not a heck of lot you can do but poke away at it hopefully.

      Thats true from a user standpoint, but the OP was talking about it w.r.t to being a developer.

      And do you know what the documentation of the process for a piece of software is? Do you? It's the Source Code. Yes, that includes the Makefile and documentation of the toolchain used for the build.

      I don't get how that's relevant to the point at hand. Anyway, I'm not debating the process. I just don't get the argument against the NT platform here that the OP was trying to make. There exist poor tools and libraries on any platform. But blaming the platform for the poor tools? Heck if you think all tools made by Microsoft are horrible.. well. don't use them. That doesn't make NT bad at what it does. Also its a pretty weaksause argument when you bring up number of arguments to APIs as an example of "gratuitous complexity" (Also, AFAIK, there isn't a Win32 API offhand that takes 30 arguments)

    10. Re:Great. by Wumpus · · Score: 1

      > But dont worry ! the kernel didnt crash ! so it all must be fine !

      It is fine in the sense that any files that weren't open by GNOME applications are safe, and that the file system isn't corrupt. It's no consolation when it happens and annoys you, though.

      The problem with Linux on the desktop is that nobody has a clear stake in making it work well and the resources necessary to pull it off. There are plenty of companies that make money in the server space and therefore have the incentive to make server stuff work, but nobody is making significant money (as far as I know) in the consumer desktop market, where people are likely to need to run full screen games, so you end up with beta quality software, at best.

      I agree about your duct tape remark. I do feel that it's high quality duct tape, with floral prints and scented sticky side. And if it breaks, why, we'll give you another roll for free so you can fix it.

      Overall, I'm much happier to use Linux, warts and all, than Windows, which isn't supposed to have the warts, has them anyway, and when you report them to Microsoft they just close the bug report.

    11. Re:Great. by clockt · · Score: 1
      Not really. I've always found people working that side of the fence to have a deep and immovable faith in the lore and fable of their trade. It worked for them and they all got paid in the end, but I never felt that they deserved it.

      I've just been through this whole charade while replicating an image for a local community centre; Not my field, but I'd been around and had sat through a few deployment meetings in a previous life. It was identical hardware so I was fairly confident I could pull it off. I found Microsoft's documentation on replication and digested it. I ran sysprep and discovered that not only did it completely remove Microsoft's own SteadyState, but it destroyed the customisation I'd spent hours crafting for my end users. There's more to it than that, but that was the guts of it. I restored from backup and moved on...

      I did some more research, downloaded NewSID, read the documentation and decided that the scenarios alluded to didn't apply and it was all a lot of messing about for no good reason. In fact, I decided on my own volition that it was all a crock of shit.

      I "rolled it out" to use the parlance of the day, and it's fine. Imaging and renaming the computer takes 5 minutes. It works, it prints, it does internet.

      I'm marking this one up as a triumph of common sense and practicality tempered by evidential results, over complexity, self-serving bullshit and FUD - vindicated after the event by this article.

    12. Re:Great. by b4dc0d3r · · Score: 1

      I upgraded to Vista due to company policy. Opening Word 2007 causes an instant crash, on both new and old files - even things I created yesterday.

      I loaded IDA Free, got the crash address out of the event viewer, disassembled and did a static analysis of the problem. 15 minutes later, I deleted all of my printers. Open Word, no crash.

      First point is, it's possible to resolve your own problems.

      Second point is, a guy taking support calls had this problem for three weeks while people tried to fix it, and came up with the same answer - delete printers and re-add.

      Third point is, what the HOLY FUCK does a printer driver have to do with displaying a document? I know, they're all integrated into the GDI abstraction so you can print/draw regardless of the output device, blah blah horseshit. Removing and re-adding the printer driver works for about a week - it's a network printer, and I've switched to different ones with different models.

      There is a lot you can do, if you know what you're doing. But you have to know, which means you have to learn, which means you have to have a lot of problems. The first instinct I have now is to fire up a disassembler - google is an afterthought. That's a terrible indictment of the quality of software. Even worse, I find what Im looking for. I'm not a cracker, i'm a pissed off Windows slave.

      To GP: this might not seem like rational thought to you, but it solves problems quickly. This is just an application crashing - I could go to OO.o or ABIWord or something else. When an API fouls up for no apparent reason, you can't just go hex editing because loads of drivers are now signed, so you're stuck.

    13. Re:Great. by b4dc0d3r · · Score: 1

      Microsoft employee feeling defensive? That there are so many platforms for Windows says yeah, it's complex. The operating system controls flow of opcodes to the processor and doesn't care which tools you use to create the binary. Once the parameters are in the kernel, you are at the mercy of Microsoft's documentation and correctness of implementation.

      Ignore toolset, library, everything else and write W32 ASM, or if you have some balls write ASM using kernel only. You do already, ok I'll buy that. It's still gratuitiously complex. Why do you think they have so many different ways of interacting with the OS?

      So let me rephrase. The difficulty in developing for MS has always been the vague, multipurpose error messages. One component fails, maybe with a specific return code. The calling component doesn't return the returned error directly, because its interface is not defined to return that type of error. The outer calling component does the same thing. Instead of "function x returned invalid in pointer" you get simply "something somewhere was not correct." Documentation won't help you, only trial and error and beating your head against a wall. Or disassembly/live debugging.

      It comes down to - if you wnt to make some truly solid and functional software, be prepared to debug at the KERNEL level. Userland won't cut it. To me, that's gratuitously complex.

    14. Re:Great. by 0ld_d0g · · Score: 1

      Microsoft employee feeling defensive?

      Haha, I guess I shouldn't be surprised by that given the thick level of paranoia here. Even if I was, whats it to you?

      That there are so many platforms for Windows says yeah, it's complex.

      No, it doesn't. See what I did there? Saying it doesn't make it so.

      Why do you think they have so many different ways of interacting with the OS?

      Because each developer likes and prefers different tools and languages. And there is this crazy thing called using the right tool for the job. Maybe you're hard core but most people would prefer writing games in OpenGL/XNA/DirectX and not worry about implementing their own software rasterizer and shading pipeline in native C++/Win32 everytime they write a game.

      So let me rephrase. The difficulty in developing for MS has always been the vague, multipurpose error messages. One component fails, maybe with a specific return code. The calling component doesn't return the returned error directly, because its interface is not defined to return that type of error. The outer calling component does the same thing. Instead of "function x returned invalid in pointer" you get simply "something somewhere was not correct." Documentation won't help you, only trial and error and beating your head against a wall. Or disassembly/live debugging.

      Can you give us some examples with sample code? Thats not to say it isn't true. I've encountered my share of cryptic error messages. I'd like to see them to see what level of difficulty you're talking about.

      It comes down to - if you wnt to make some truly solid and functional software, be prepared to debug at the KERNEL level. Userland won't cut it. To me, that's gratuitously complex.

      Since most software shops in the world don't employ kernel experts who can debug at the asm level (let alone know how the kernel works even roughly), are you saying most software on NT isn't "solid and functional"?

      But what do I know, maybe its gratuitously complex to you. I won't argue with an opinion.

  25. I have been saying this for years. by Anonymous Coward · · Score: 0

    The machine receives a new sid when joins the domain.

  26. Google "COMMANDO" by mosel-saar-ruwer · · Score: 5, Funny

    A ggreat deal of Microsoft security is unfortunately just like the underwear of Brittany Spears.

    GOOGLE IMAGES: britney spears commando

    1. Re:Google "COMMANDO" by Anonymous Coward · · Score: 0

      Ohhh! I think Informative would fit quite well. I actually learned something new.

    2. Re:Google "COMMANDO" by mosel-saar-ruwer · · Score: 1

      And yet I got modded "Troll".

      Go figure.

  27. my NewNewSID program fixes these problems by Anonymous Coward · · Score: 1, Funny


    #include <stdio.h>

    int main()
    {
        printf( "%d\n", 42 );
        return 0;
    }

  28. Duplicate SIDs are a huge problem with KMS by Asmor · · Score: 2, Interesting

    As a student, I worked for the CS department. It was just me and my boss, and we both had extremely limited hours. Thus, we didn't have a whole lot of time or opportunity to figure out how to do things 'the right way' whenever that would change, and just kept doing things as we had been.

    This was a problem when Vista was deployed. Once we got out image to where we wanted, we would ghost it and deploy to about 60 machines. For Vista, we used a KMS (Key Management Server) which is one of the options you have for licensing large numbers of machines. In a nutshell, each machine contacts the KMS and gets a license for itself.

    This was supposed to be strictly limited to volume licensing; thus, the KMS would not activate any machines until it had at least 25 different machines registered to it.

    Now, ideally what would happen is that before you make your image you'd basically set Windows into a 'deployment mode' (not the technical term) where, the next time it's booted, it would go through and reinitialize everything for the machine it's on, and part of this involves generating a unique SID.

    We toyed with this a bit with the time we had, but couldn't get it to a place where we were happy with the results. In particular, we had some issues with networking, IIRC, that means we would have had to go and manually setup every machine for our network.

    TL;DR: All of our machines had the same SID, the KMS only say 1 unique installation even though 60 machines were connecting to it, and Vista wouldn't activate. In order to fix it, we had to change the SIDs for each machine.

    So to say that duplicate SIDs are not a problem is erroneous indeed.

  29. Really? by Sycraft-fu · · Score: 4, Interesting

    This surprises me. I'm not going to say he's wrong, after all the man literally wrote the book on Windows (Windows Internals from Microsoft Press, great book) but it just seems odd. We seem to have problems at work if a system is Ghosted, but not SID walked. It'll join the domain, but exhibit weird problems, like users not able to log in and such. Now maybe GhostWalk does other things too that are what really needs to be done, but it seems to just be a SID change tool.

    Personally I'll keep using GhostWalk until Symantec removes it.

    1. Re:Really? by Spad · · Score: 1

      As others have stated, Sysprep does more than just changing the SID (In fact you can tell Sysprep not to regenerate the SID if you want to). Just because duplicate SIDs aren't an issue doesn't mean that you won't have problems if you fail to Sysprep machines before deployment.

  30. but they have the source! by Stardate · · Score: 1

    can't they just grep through it for all references to the SYSID and see what decisions are based upon it? i wish it was as simple as this...

    --
    "... I declare our city to be a free and independent state to be named Tri-Insula!" --Fernando Wood, Mayor of NYC 1861
    1. Re:but they have the source! by Anonymous Coward · · Score: 0

      can't they just grep through it for all references to the SYSID and see what decisions are based upon it? i wish it was as simple as this...

      maybe they have some proprietary binary files in their build, and none dares to touch :)

    2. Re:but they have the source! by Thundersnatch · · Score: 1

      Windows is now supposedly > 50 Million lines of code. I imagine that it would take man-years to inspect every hit on the SID in the source code.

  31. Re:Hmm... Pretty sure I ran into an issue somewher by Anpheus · · Score: 3, Informative

    You should sysprep the machines to reset their state before joining the machines. Basically, you should create a stock VM that is your disk image right after a "sysprep" and then NEVER EVER do anything with that. Clone it, complete the setup process, and join that cloned machine to the domain.

    So in your case, you should have installed each VM from the ISO/CD and joined the domain, or used a first sysprepped disk image, cloned that twice, and used the two clones to join the domain.

    The reason is that sysprep does the necessary work to separate two machine's identities in a more significant way than just the SID.

    Microsoft's policy is you should never clone a disk image in a domain environment without first running sysprep. NewSID was just a way of doing "sysprep lite."

  32. Workstations with same SID won't logon by gustavopuy · · Score: 1

    If I clone Xp workstations with the same SID they can't logon to Active Directory and got an erratic behavior. After a new SID generation all back to normality

    1. Re:Workstations with same SID won't logon by COMON$ · · Score: 1

      As well you have to generate a new Identifier for WSUS, and a number of other situations. I wonder if he is just referring to the machine sid, as when you join a domain you sid changes...

      --
      CS: It is all sink or swim...oh and did I mention there are sharks in that water?
  33. sysprep already does this for you by Anonymous Coward · · Score: 0

    When using Sysprep the tool will automatically generate a new (clean) SID for the cloned machine at first boot, if you intend to create clones rather than a backup image for example where you would want to restore the original SID. the exception is when the -NOSIDGEN argument provided with sysprep is used, it will force the cloned machine to retain the SID of the original system, soemtimes this is desirable,sometimes not. Not sure how someone would confuse this, its clearly stated in the documentation for sysprep since 2000. Literally 30 seconds on google and Voila, RTFM folks.

  34. So who's got a copy of the final release of NewSID by argent · · Score: 1

    Given that it will undoubtedly be necessary to NewSID machines after all, who's got a copy of NewSID?

    And, um, you know... this wouldn't be a way for Microsoft to discredit Ghosting?

  35. Closed source by rolfc · · Score: 1

    Obviously this has gone undetected so long because of the lack of understanding of the issue in general and the users lack of access to the code in special. How many of these issues are still hidden?

  36. KMS has nothing to do with SID - it's the CMID. by Anonymous Coward · · Score: 1, Informative

    Sysprep does *many* important things, not just change the machine SID.

    For example, it sets the machine up to recreate a new machine SID *and* it sets itself up to rejoin the domain, which gives it a new domain account and hence, a new domain-SID for the machine (tehnically, SID of the computer's account on the domain.)

    SYSPREP also changes the CMID of the machine. It's this CMID that has to be changed for KMS to see it as a seperate computer.

    http://support.microsoft.com/kb/KB974176

    So, yeah. Duplicate SIDs are NOT a KMS problem, but duplicate CMIDs are. Running SYSPREP fixes it not because SYSPREP changes the SID, but because SYSPREP *also* changes the CMID.

    1. Re:KMS has nothing to do with SID - it's the CMID. by Anonymous Coward · · Score: 0

      Are you 100% sure that KMS might not _also_ check the SID? Because if it does, changing the SID is all that is necessary to fix the issue (although in a bad/unsupported way), which IMO is a justification for NewSID...

  37. Theological disputation... by Anonymous Coward · · Score: 0

    Maybe it's because I have a cold, but this seems reminescent of an old heresy, and about as silly to non-believers.

  38. Ignorant and inconsiderate by BitZtream · · Score: 3, Informative

    Not so much of Mark, if he doesn't want to maintain it, thats fine, it was free, I get it.

    However ... this is typical of MS.

    They tell us (developers) that the sid will be unique. We write software that expects this and uses the sid as a unique ID.

    Now they come along and say 'naaa, its not important to be unique, use the same sid all you want, no one will notice!'

    And then I have to say ... thank god for real OSes where backwards compatibility is a rule for a reason, not just because they need it to maintain compatibility. They throw corner cases to the wind and go back on something they've said for years, completely ignoring the fact that people have built things based on something they said was a requirement.

    This is the forth change that will break (or potentially in this case) software I have to maintain. Two patches that remove existing functionality in the name of security with the argument that 'no one uses it that way', to which Google can clearly show to be wrong. Even better is that one of them, a change to the DHTML control breaks some of their own apps, OWA for instance.

    Its fucked up when you have to find a hack via Google to fix a bug in MS software that they say doesn't effect anyone ... except everyone that uses one of their more popular clients. Their response is 'patch exchange' which breaks OTHER things.

    STOP

    CHANGING

    BINARY

    COMPATIBILITY

    you worthless fucks. Yes, I'm annoyed.

    --
    Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    1. Re:Ignorant and inconsiderate by DrXym · · Score: 2, Insightful

      I think you would be hard pushed to find any OS which tried to maintain the level of backwards binary compatibility as Windows has traditionally provided. Sure some things break from release to release, but generally the majority works extremely well. Given the hideous complexity of Windows this is nothing short of a minor miracle.

    2. Re:Ignorant and inconsiderate by BitZtream · · Score: 1

      Run Solaris or AIX some time.

      Windows is better than a free OS, but its at the bottom of the barrel for commercial OSes.

      Solaris wills till run most SunOS apps that weren't too tightly integrated. Show me a working OS/2 or Win1/2/3 app in Windows XP or Vista/Win7

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    3. Re:Ignorant and inconsiderate by DrXym · · Score: 1
      Solaris wills till run most SunOS apps that weren't too tightly integrated.

      So you mean apps that *are* tightly integrated might not work? How is this any different from the situation with Windows where the kind of apps that may have issues are generally system tools. Think things like virus checkers, drive defraggers / repartition / cloners etc. The situation is no different on Unix systems. I expect if you ran some random network tool from 10 years ago on Solaris 10 you would experience all sorts of issues brought about by changes to security, location of files, bug fixes etc.

      Besides which, even if you had software so ancient it wasn't supported by Windows, you could still virtualize it. It doesn't even need Windows to be underneath since the likes of VirtualBox more or less cut the host OS out of the equation.

  39. NewSID allows for activation reset? by ard · · Score: 5, Interesting

    From the article:

    This is called generalizing the image, because when you boot an image created using this process, Sysprep specializes the installation by generating a new machine SID, triggering plug-and-play hardware detection, resetting the product activation clock, and setting other configuration data like the new computer name.

    Is the product activation clock reset because of Sysprep, or because the SID is changed?

    In other words, could NewSID be used to keep unactivated windows installations running indefinately?

    <conspiracy_theory> Would that be the real reason for the NewSID retirement? What's the rush of removing the download instead of leaving it unsupported? </conspiracy_theory>

  40. May this harm SAMBA by Anonymous Coward · · Score: 0

    Does any version of SAMBA (either out there or in progress) presume that all SIDs are unique ?

    I notice that MS only says that none of *their* software does ?

  41. No specification by Anonymous Coward · · Score: 0

    "It’s a little surprising that the SID duplication issue has gone unquestioned for so long, but everyone has assumed that someone else knew exactly why it was a problem."

    So no one at MS ever wrote a specification of how SIDs are supposed to work? That could be checked against the code and the behaviour of test systems.

    Bah Microsoft!!

  42. Obvious explanation by Anonymous Coward · · Score: 0

    MSFT retired NewSID because they want you to buy licenses separately instead of cloning omg i am drunk

  43. I'll miss NewSID by Darkon · · Score: 4, Insightful

    Not that I ever used it to generate a completely new SID, but what I did find it invaluable for was to set a machine's SID back to its old value after a re-install. This did away with the need to change the ownership on all of the user's files still on the hard drive and meant that most of the time their user profile would just keep on working as if nothing had changed.

    1. Re:I'll miss NewSID by bill_mcgonigle · · Score: 1

      Not that I ever used it to generate a completely new SID, but what I did find it invaluable for was to set a machine's SID back to its old value after a re-install. This did away with the need to change the ownership on all of the user's files still on the hard drive and meant that most of the time their user profile would just keep on working as if nothing had changed.

      So, if you clone them all with the same SID you'd be better off, right?

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  44. Thank you by hcgpragt · · Score: 1

    I, for one, wish to speak a word of thanks. This was a step of courage.
    If only half of the people working on a non-solution, on which they own their daily bread, where so courageous.

    H

  45. parent NSFW by junglee_iitk · · Score: 1

    dude, write "NSFW"!!!

    always!

  46. Do Not Do This by Thad+Zurich · · Score: 1

    Do not clone Windows from drive images. Ever. You will never understand why things are broken down the road.

    1. Re:Do Not Do This by KGBear · · Score: 2, Funny

      I know, brother. I agree. Do you know what my Windows support people reply to that? "Who cares? When it breaks, just clone it again."

    2. Re:Do Not Do This by Thundersnatch · · Score: 1

      Tens of millions of stable Windows corporate systems in the real world prove you wrong. Hundreds of millions of OEM systems prove you wrong (they use Sysprep and cloning, too you know). My own compnay has been deploying servers and workstations from cloned images since the early days of Win2K - maybe 10K images since then. Never has an issue arisen that could be traced to the cloning. All "inexplicable" issues I'm aware of have usually been traced to bad hardware, corrupt filesystems, buggy drivers, the usual suspects. But never to the fact that a machine was cloned using Sysprep.

  47. Re:Hmm... Pretty sure I ran into an issue somewher by Chang · · Score: 1

    You need to make sure the image wasn't joined to the domain and that each new copy does it's own join.

    The domain SID in a domain joined image will cause problems.

    Russinovich's post is about the machine SID which is not the same thing as a domain SID.

  48. Re:So who's got a copy of the final release of New by vrmlguy · · Score: 1

    Given that it will undoubtedly be necessary to NewSID machines after all, who's got a copy of NewSID?

    http://thepiratebay.org/details.php?id=3504780
    This is a snapshot of all of the SysInternals utilities made immediately after Microsoft purchased the company. I don't know which version of NewSID is in it (I'm downloading it myself right now). Hopefully, someone will create a torrent containing the final version of NewSID and put it somewhere.

    And, um, you know... this wouldn't be a way for Microsoft to discredit Ghosting?

    Actually, I'm wondering exactly who made the "occasional reports that some Windows component would fail after NewSID was used". Other people are speculating that resetting the SID also resets the product activation clock. That would be a very interesting "failure" as it would explain the speed with which NewSID was removed. Obviously, the guy that created that torrent no longer seems quite as paranoid as he probably did when he created it.

    --
    Nothing for 6-digit uids?
  49. There is general agreement: NewSID is needed. by Futurepower(R) · · Score: 1

    Mark Russinovich seems very knowledgeable to me, but I think he has made a mistake. There is general agreement that NewSID is necessary.

    For example, we clone hard drives and leave the cloned drive in the system as a backup. For that, my understanding it that it is necessary to change the SID. Since those computers are cash registers, they are not attached to a domain. If they were attached to a domain, and the domain controller failed, the user might not be able to ring a sale. We could use Sysprep, but in this particular case, NewSID is more efficient. Or, is there some problem of which we are not aware? What other machine identifiers does Sysprep change, besides the SID? The lack of clear, concise documentation of Windows raises the cost of ownership.

    Here is official Microsoft policy as of 2009-11-04, 05:36 PDT: "Because the SID identifies both the computer or domain and the user, unique SIDs are essential to maintain support for current and future programs."

    The Windows XP Service Pack 3 Deployment Tools still mention changing the SID using Sysprep. Note that the help file for those tools still references XP service pack 2. That's typical Microsoft uncaring sloppiness, in my experience. The Sysprep Command-Line Options help file, in deploy.chm, still says that there are cases where changing the SID is necessary.

    There may be many programs not supplied by Microsoft that depend on differing SIDs. This is not a decision that Microsoft should make unilaterally.

    Do older Microsoft Windows operating systems require a unique SID in ways that Mark Russinovich is not considering?

    Quote from the article by Mark Russinovich: "I took my conclusion to the Windows security and deployment teams and no one could come up with a scenario where two systems with the same machine SID, whether in a Workgroup or a Domain, would cause an issue. At that point the decision to retire NewSID became obvious."

    Translation of that quote: "We didn't do any testing."

    I think that at least some disk imaging and backup software, such as Acronis, changes the SID after a clone.

    Some web sites are still offering NewSID 4.10 for download. For example, NewSID 4.10. But, is that a good copy? What is the MD5 or SHA1 or SHA256 of the latest version of NewSID.EXE?

    Is it legal to download something that Microsoft supplied in the past? In the U.S., there is a law of Fitness for Merchantability. Does that law protect Microsoft's users, since in some cases we can't use what we bought without NewSID, or some other SID-changing utility?

    What is the real reason NewSID was removed from availability for download? To me, Mark Russinovich has always seemed completely honest, and far more knowledgeable than any other programmer I know of at Microsoft. On the other hand, Microsoft managers have sometimes seemed to me to have chosen to do something that they think will be more profitable for Microsoft, but very much against the best interests of customers.

    Note that the "markrussinovich" who posted comments in the Microsoft TechNet story does not have a TechNet biography.

    Some people have had trouble with SID-changing utilities. Some of those troubles were caused by not letting the SID-changer finish scanning an entire partition or hard drive.

    This is a BIG issue for us. Our experience is that Microsoft Windows has an extremely high cost of ownership, due partly to the sloppiness of the design. Mark Russinovich's SysInternals tools for Microsoft Windows have been very helpful for us in lowering that cost a little. Those tools should always have been supplied by Microsoft, in my opinion, and now that SysInternals is owned by Microsoft, they are.

    1. Re:There is general agreement: NewSID is needed. by Random+BedHead+Ed · · Score: 1
      Part of Russinovich's point is that Windows boxes don't interact with one another by SID, only by username/password credentials. Quoth TFA:

      Windows doesn’t allow you to authenticate to another computer using an account known only to the local computer. Instead, you have to specify credentials for either an account local to the remote system or to a Domain account for a Domain the remote computer trusts. The remote computer retrieves the SIDs for a local account from its own Security Accounts Database (SAM) and for a Domain account from the Active Directory database on a Domain Controller (DC). The remote computer never references the machine SID of the connecting computer.

      In other words, it’s not the SID that ultimately gates access to a computer, but an account’s user name and password: simply knowing the SID of an account on a remote system doesn’t allow you access to the computer or any resources on it. As further evidence that a SID isn’t sufficient, remember that built-in accounts like the Local System account have the same SID on every computer, something that would be a major security hole if it was.

      So if the design of your network layout is that you allow the computers to access one another with common usernames and passwords, Russinovich is saying that your layout will work even if all the boxes have identical SIDs. Running NewSID is apparently unnecessary work, except in cases of keeping the SID of the first DC on a new AD domain from matching those on other boxes.

    2. Re:There is general agreement: NewSID is needed. by mysidia · · Score: 1

      I don't know about what other sites might be offering as NewSID.exe, but I got NewSID from Microsoft's web site a few months ago as part of the "SysInternals Suite" ZIP file, and the Newsid.exe id'ed as version 4.10 had a SHA1 digest of:

      4c64df34ef8f8faa757e1d4482486453d7425752 newsid.exe

      Mark Russinovich seems very knowledgeable to me, but I think he has made a mistake. There is general agreement that NewSID is necessary.

      There would be some question of.. does it even matter? The general agreement resulted from Microsoft policies and statements regarding SIDs that were taken at face value that they needed to be unique. Microsoft essentially admitting they are wrong all along and SIDs don't need to be unique.

      General agreements can be wrong. Following voodoo practices like "Someone ran into a problem once, and running NewSID seemed to fix it", therefore SIDs need to be unique, is faulty reasoning.

      Surely Microsoft has done some sort of basic testing before making a revision to their recommendations that could incur support costs to MS customers if inaccurate. It would seem to be make more sense to advise against SID changing, but still provide the tools to do it, in any case.

      I don't believe MS ever documented in the platform APIs that a field called Machine SID was available as a unique id. Someone relying on the SID would be coding by coincidence, and should definitely be prepared to fix the bug in their software, if their assumptions should prove wrong...

      Even before Microsoft's changes, many people are not generating new SIDs for cloned systems, or using sysprep to handle cloned systems, for that matter.

    3. Re:There is general agreement: NewSID is needed. by metrix007 · · Score: 1

      In the U.S., there is a law of Fitness for Merchantability. Does that law protect Microsoft's users, since in some cases we can't use what we bought without NewSID, or some other SID-changing utility?

      Just wanted to single this out, but the rest of your post is good. A law for a Fitness for Merchantability would not apply in this case. Windows is sold as a particular product, with particular uses impled and expected. If you want to use it for things outside of this scope, you should not, and legally can not, expect further support. This is similar, but no where near as extreme, as running a Hackintosh.

      --
      If you ignore ACs because they are anonymous - you're an idiot.
    4. Re:There is general agreement: NewSID is needed. by Unequivocal · · Score: 1

      What is the specific problem that occurs in your scenario? You describe a lot of organizations that say it's bad to dupe SID's but you don't describe the failure mode that occurs when SID's are duped.

      It seems like the original article is saying that everyone says duped SID's are bad, but no one can produce a failure scenario / test case that documents it. Please provide some evidence so we can call check out your scenario.

    5. Re:There is general agreement: NewSID is needed. by Anonymous Coward · · Score: 0

      Mark Russinovich seems very knowledgeable to me, but I think he has made a mistake. There is general agreement that NewSID is necessary.

      Not from anyone who actually understands what he's written.

      There's two problems at play here. The first is that people aren't reading the article fully. It clearly says in the title that he is referring to the Machine SID.

      There are multiple types of SID. The three principles varieties you commonly see are:

      1) Machine SID (The ONLY one that Mark's tool updated).
      2) Domain SID (Only created when joined to a domain).
      3) User/Group SID

      #1 is allocated when machine is built/installation occurs.
      #2 is allocated when machine joins domain.
      #3 is allocated when an account is created (and shares elements with either 1/2 depending on whether it's a local or domain account).

      For a domain controller that was used to initialize the domain, #2 is the same as #1.

      Marks tool only regenerates #1 and ammends local-only SIDs, which are never used anywhere harmful. It does not change the Domain SID nor any domain user SID's used on ACLs.

      For this reason it is redundant, and can be fairly safely ignored.

      Issues will always occur in other items that store unique per-machine state, if that state was on the machine BEFORE the cloning. NewSID would not protect from that scenario anyway. A good example of a well known application that has problems in this way is WSUS (Windows Update Services) - It stores a unique per-machine ID in a registry key, and if you clone when that key is in place every machine constantly tells WSUS "Hey, I've changed my name to ". and WSUS thinks it only has one client.

      NewSID *appears* to have an affect in that people who use it are doing so, generally, as part of a more robust imaging strategy. If people followed the stringent imaging checks and steps, irrespective of the use of NewSID, all would still be just as well as before..

      -Steve Gray

    6. Re:There is general agreement: NewSID is needed. by Anonymous Coward · · Score: 0

      And just to follow on from this - this means that you need to, and always have (irrespective of NewSID) needed to join the domain AFTER booting the cloned image. A machine that joins the domain and then gets imaged will have all kinds of horrible problems.

      Domain controllers are the sole exception to this - and I'm pretty certain that post NT4, this is probably no longer the case anyway. The machine ID for the primary domain controller used to form the domain SID (from which all other domain-specific SID's, such as domain SID's for machines and users are derrived).

  50. Microsoft Marketeering Fellow by Anonymous Coward · · Score: 0

    How is this shit spewed from a Microsoft Marketeer worth posting to Slashdot?

    Oh, yeh. Its not.

  51. Mod parent up by Anonymous Coward · · Score: 0

    ...because it's fixed a problem that I was having right now!

  52. SID? by Yvan256 · · Score: 1

    Microsoft bought Commodore? When did that happen?

  53. Britney Spears Sans Panties. by Anonymous Coward · · Score: 0

    For your pleasure. Britney Spears Sans Panties.

  54. The mechanic version works better in real life by swb · · Score: 1

    I can see where it makes sense to tailor the anecdote to higher-end professions, but the version that's always stuck with me and been one that anyone can relate to is the auto mechanic.

    A driver takes his car to the mechanic to find out why the car is making a strange noise and running rough. The mechanic says he will look at it. He opens the hood, listens and then grabs a hammer from his toolbox and hits the engine block. The car quits running rough and the noise goes away.

    The mechanic turns to the customer and says "That'll be $500." The customer says "You're crazy if you think I'm paying you $500 to hit my car with a hammer." The mechanic says "You don't understand. Hitting the engine with a hammer is free. Knowing where to hit it? That's $500."

    I like this version better because (a) almost everyone has experience with a car and a mechanic, and (b) it teaches people that the "work" may often *appear* simple but in actuality even the lowly blue-collar mechanic has information you don't to fix a problem.

    I've told this anecdote countless times to my IT consulting customers who are, on occasion, miffed because they called me in to resolve a problem and I billed them an hour for what appeared to be a trivial amount of work. Almost always they kind of laugh and "get it" that what they're paying for isn't always some large unit of labor but for the skills and experience of someone who knows something they don't.

    1. Re:The mechanic version works better in real life by Unequivocal · · Score: 1

      These anecdotes are all just examples of inefficient markets. If there are lots of people who have an answer, you can pay any one of them for the answer and the pricing is efficient. If supply is low or you don't know where to look for suppliers, pricing is inefficient, and supply-side pricing ensues (similar to monopolies).

      You don't pay someone a pile b/c they know where to hit a machine. You pay them a pile b/c you can only find that one person who knows where to hit it, and they can gouge for all your worth.

    2. Re:The mechanic version works better in real life by Deosyne · · Score: 1

      One of the many reasons why I love yon Intarwebs. My oil light came on a few weeks back. Given that the oil level was fine I suspected that it was the oil pressure sending unit, but the car is up in years so I figured I'd better let the pros take a look to make sure it wasn't the pump. A $15 inspection confirmed it was the sending unit and the additional cost for part and labor was quoted at ~$95. Five minutes of searching on the Internet gave me the exact procedure and a video on how to replace it so I bought the part for $13 and spent a half-hour doing it myself.

      I still let the pros handle things that I either can't do due to the lack of equipment or space, or that I'd prefer not to take the time to do, but if it comes down to tapping a block with a mallet (which I actually did in order to fix my sputtering lawnmower about a year ago, oddly enough; needle valve was sticking. Thanks again, Internet!) then it's a damned shame if people have to pay an exorbitant amount of money just to figure out where to swing.

  55. The comments tell a different story. by Futurepower(R) · · Score: 1

    Look at the comments on his article. Numerous people say it is incorrect.

    What about the case where there is a drive in a system that is a clone of the system drive?

    In my opinion, there should have been an announcement that NewSID would be removed long before it was actually removed. That would have given time for people to make comments. It also would have given time to change documents on the Microsoft web site that say that having a different SID is important.

  56. dropping legacy os? by Anonymous Coward · · Score: 0

    the way I see it is that MS is just dropping support for xp/2003, retire the deployment tool for legacy os.
    If only they would give us something worth to replace my XP....

  57. But....But.... by Hasai · · Score: 1

    ....What would BILL do?!?!?!?!??

    --

    Regards;

    Hasai

  58. Cygwin by Anonymous Coward · · Score: 0

    So Microsoft doesn't give a crap about fixing the SID problem when cloning systems with Cygwin installed? Well, knowing MS, they probably consider breaking Cygwin as a side benefit.

  59. Re:Hmm... Pretty sure I ran into an issue somewher by Unequivocal · · Score: 1

    I remember back around 99/00 we were cloning a ton of machines to QA boxes and server stuff. NT server maybe - hard to remember. We tried cloning without SID removal and the machines didn't work right. I can't remember what exactly the problem was, but possibly joining to a domain. We paid some consultant to come in, they informed us that we're idiots and can't just clone these machines like that. They brought ghost to the problem, swapped in new SID's and the problems went away. I can't remember all the details but maybe this helps jog the memory.

    I have no idea if the problem was really SID's or as TFA suggests, the issue was elsewhere but got blamed on SID's..

  60. NewSID breaks MS Remote Assistance by milobloom-ab · · Score: 1

    We discovered during an SMS 2003 rollout that if you try to initiate a Remote Assistance session to a machine that had NewSID run on it (part of our post-imaging processes), that Remote Assistance would not connect.. so, good riddance to NewSID as far as I'm concerned. (Running Sysprep on the machine would fix the problem.)

  61. It is cool to bash MS on Slashdot by Anonymous Coward · · Score: 0

    I am cool because I bash MS on Slashdot even though I have no idea about how domain SIDs and machine SIDs are different. I also refer to every unique identifier for every application as a "SID" because it gets duplicated when I clone workstations, just like SIDs do. And I really, really, really know what I am talking about because I duplicate workstations for a living and that is what all the best IT professionals do all day long. It doesn't matter that I don't take time to understand the underlying workings of the OS that I am tasked with supporting. It is much easier to say that MS is dumb, that Mark R. is now assimilated into the borg, and that they are both wrong because neither one knows more about Windows networking than I do. Linux is obviously better because it doesn't use UIDs in any way, right? Right?!

  62. Get rid of the SID then! by KGBear · · Score: 1

    If SIDs can be infinitely duplicated and it impacts nothing at all, then what's the point of having SIDs in the first place?

    1. Re:Get rid of the SID then! by Anonymous Coward · · Score: 0

      This is the only question any reasonable person should be asking.

      All others seem to be so hopelessly entrapped in MS's incoherent bullshit, one can only wonder if there's any sanity left.

  63. Re:Hmm... Pretty sure I ran into an issue somewher by lucifuge31337 · · Score: 1

    I'm not sure this is any more useful to your post, but I very clearly remember going through this when I was contracted to make a machine imaging setup for a computer lab back in the NT 4.0 (possibly even 3.51) days. NT4 Server/DC, and NT4 Workstation machines. Once you joined the domain with one machine, any cloned one refused to join the domain. I ended up with sysprep scripts and all kinds of other junk and cloned them at the point of the first (or maybe second....I don't recall) reboot during a fully scripted setup to solve the issue. This was before tools were available to deal with this.

    --
    Do not fold, spindle or mutilate.
  64. Re:So who's got a copy of the final release of New by IICV · · Score: 1

    Microsoft actually explicitly supports ghosting nowadays, assuming you do it their way. Check out the Windows AIK and this guide. It's pretty nice, and if you want to automate things you just need to mount the boot image (using dism) and edit Windows\System32\startnet.cmd

  65. Re:So who's got a copy of the final release of New by argent · · Score: 1

    Microsoft actually explicitly supports ghosting nowadays...

    OK, add one word: this wouldn't be a way for Microsoft to discredit competing Ghosting?

  66. Re:So who's got a copy of the final release of New by IICV · · Score: 1

    What competing Ghosts? I don't think anyone's bought a copy of Ghost since Ghost 8. If you look hard enough anywhere there are more than fifteen computers in the same room, you can find a copy of the Ghost 8 executable. I think it just gets spontaneously created after a certain silicon threshold.

  67. Re:So who's got a copy of the final release of New by argent · · Score: 1

    Who needs Ghost, we did it using a picoBSD boot floppy that dd-ed an image of the partition table and system partition onto the raw hard disk over ... damn, I forget whether we used nfs or ssh or http now... and then ran setsid after first boot.

    Don't know if newsid was out yet.

  68. MSMQ has issues with dup SIDs by Anonymous Coward · · Score: 0

    In a network of cloned boxes using Microsoft Message Queue, we have found there are issues with dropped messages to/from a common server. Creating unique SIDs solved our problem...

  69. Absolutely STILL a Problem! by milette · · Score: 1

    I've built MANY MOSS (SharePoint) farms and the ONLY way to get them to run without generating errors in the logs is to build each machine individually and not from VMware templates or cloned images. Interestingly enough, NewSID did NOT solve the problem, but to be sure, there IS SOMETHING that causes this -- and probably updating/extending NewSID would have been the way to go.

  70. I never understood why machines can't be identical by ResidentSourcerer · · Score: 1

    For 8 years I had windows clients and FreeBSD servers.

    Most of the clients were re-imaged nightly with a complicated
    script that set $COMPUTERNAME to be equal to the name returned by reverse lookup of their IP address which was set by dhcp.

    I understood the argument against identical SIDs to be that SIDs were used to create the individual user accounts, and that duplicated SIDs meant that users on two machines could have the same UID, which meant that user A on machine 1 could pretend to be user B on machine 2.

    In my case the only IDs on local machines were system IDs. All user IDs were at the domain level.

    So I didn't worry about SIDs. As far as I know this never came back to bite me.

    --
    Third Career: Tree Farmer Second Career: Computer Geek First Career: Teacher, Outdoor Instructor, Photographer.
  71. what kind of mechanic bills 500 an hour for labor? by Anonymous Coward · · Score: 0

    what, celebrity mechanic? the president?