+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
O/S Deployment Thread, NewSid in Technical; Just set up my fisrt FOG server and used it in anger :-), but just had a thought, is there ...
  1. #1
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39

    NewSid

    Just set up my fisrt FOG server and used it in anger :-), but just had a thought, is there anyway in FOG or using an addin to auto NewSid the PC after the image completes rather than having to manually go to each one and run NewSid?

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,216
    Thank Post
    2,766
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    Only thing I can think of which is most likely not an elegant way is before you create the image of the machine is to make a vbscript that launches new sid to give the machine a new sid and after its been launched pause for long enough to allow new sid to apply its settings and then delete the startup registry key and new sid

  3. #3
    Paul_L's Avatar
    Join Date
    Jun 2005
    Location
    Lancaster, Lancs
    Posts
    199
    Thank Post
    26
    Thanked 15 Times in 10 Posts
    Rep Power
    20
    Quote Originally Posted by mac_shinobi View Post
    Only thing I can think of which is most likely not an elegant way is before you create the image of the machine is to make a vbscript that launches new sid to give the machine a new sid and after its been launched pause for long enough to allow new sid to apply its settings and then delete the startup registry key and new sid
    Yep, just how we do it

    And it is quite elegant, as the VB script deletes it's self and then you have a new SID and of course FOG takes care of the renaming (although new sid does remain on the machine)

  4. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,216
    Thank Post
    2,766
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    Quote Originally Posted by Paul_L View Post
    Yep, just how we do it

    And it is quite elegant, as the VB script deletes it's self and then you have a new SID and of course FOG takes care of the renaming (although new sid does remain on the machine)
    You could get the vbscript assuming the path is always the same get it to delete newsid.exe first, then delete the registry startup / run key so it does not keep looking for the newsid.exe and then delete itself

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    You should use sysprep.

  6. #6
    kevbaz's Avatar
    Join Date
    Mar 2008
    Location
    Plymouth
    Posts
    855
    Thank Post
    129
    Thanked 69 Times in 47 Posts
    Rep Power
    43
    We use sysprep

  7. #7

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    6,259
    Thank Post
    1,138
    Thanked 1,463 Times in 980 Posts
    Blog Entries
    22
    Rep Power
    457
    You should be syspreping your machines before taking the image.

    If you need a guide read this and watch the step by step video tutorial.
    Last edited by sparkeh; 22nd July 2009 at 03:32 PM.

  8. Thanks to sparkeh from:

    TechSupp (23rd July 2009)

  9. #8

    Join Date
    Jul 2009
    Location
    Trenton
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Delay auto restart?

    Hey guys.
    Im kind of a noob at fog, and Im trying to ditch sysprep, ad it is causing myself and fellow ITs a headache. We would like to implement NewSid into the image. However, FOG seems to do an auto-reboot just before joining the domain, and we would like to use NewSid before it joins the domain. (It boots to desktop, then shutdown immediately). When we image labs, we dont wish to have 30 or so of the same SIDs on the domain. Unfortunately the time on the desktop is about 10 seconds before it reboots again. How would I fix this? I am thinking of de-selecting the Active Directory function on the hosts in FOG, then, before the machine joins the domain, run NewSid, purge newsid, then join the Domain. Is this the best solution?

  10. #9
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39
    Quote Originally Posted by Paul_L View Post
    Yep, just how we do it

    And it is quite elegant, as the VB script deletes it's self and then you have a new SID and of course FOG takes care of the renaming (although new sid does remain on the machine)
    Any chance of a copy of that script?

  11. #10
    Arcath's Avatar
    Join Date
    Feb 2009
    Location
    Lancashire
    Posts
    935
    Thank Post
    99
    Thanked 107 Times in 95 Posts
    Rep Power
    72
    Quote Originally Posted by TechSupp View Post
    Any chance of a copy of that script?
    Here it is:

    Paul_L accidently ran the script instead of opening it (so it deleted itself).

    If you have the FOG Client installed you will also need a second script that copies the .vbs file into startup.

    Firstboot.bat

    Code:
    copy C:\newsid\newsid.vbs "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\newsid.vbs"
    del "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\firstboot.bat"
    Place that it startup, then shut the machine down and image it.

    you need to make a folder on C called "newsid" and place newsid.vbs in there.

    newsid.vbs

    Code:
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    strScript = Wscript.ScriptFullName
    objFSO.DeleteFile(strScript)
    
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run "C:\newsid\newsid.exe /a"
    On the first boot the FOG client will rename the machine (cant put it on the domain tho, cause the sid wont be set), and firstboot.bat will place the newsid script into startup. When FOG reboots the machine it will then run newsid and reboot itself.

    I am looking into making it join a domain aswell

  12. Thanks to Arcath from:

    TechSupp (23rd July 2009)

  13. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    Sysprep doesn't just regenerate the SID... other funky stuff goes on in the background too.

    It's certainly no hardship to run Sysprep (once you remember to specify the right options ). I keep a folder in a share so that I can just copy it straight to c:\ and run sysprep using the same sysprep.inf for all my builds. Simples!

  14. 2 Thanks to Ric_:

    p858snake (24th July 2009), TechSupp (23rd July 2009)

  15. #12
    Batman's Avatar
    Join Date
    Mar 2009
    Location
    Northampton
    Posts
    940
    Thank Post
    115
    Thanked 118 Times in 74 Posts
    Rep Power
    39
    I agree, sysprep is the best way to do it.

  16. #13
    Jed
    Jed is offline
    Jed's Avatar
    Join Date
    Aug 2008
    Location
    Peacehaven
    Posts
    33
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I may be being a little dense here but I always thought Sysprep was just so that an image can be passed to a machine with a different hardware setup?

    How can this replace NewSID and apply a new SID to each rebuilt PC?

  17. #14

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,582
    Thank Post
    107
    Thanked 761 Times in 592 Posts
    Rep Power
    179
    Quote Originally Posted by Jed View Post
    I may be being a little dense here but I always thought Sysprep was just so that an image can be passed to a machine with a different hardware setup?

    How can this replace NewSID and apply a new SID to each rebuilt PC?
    Sysprep can be used to add additional drivers and the like but its basic function removes all the security identifies and takes it back to the state that the machine would have been in if you had just unpacked it.

    Using FOG, you can then rename it and join it to the domain without any interaction.

    Personally, I don't do the whole driver thing with sysprep... I just use it to prepare machines to have their image taken. I'm happy having a separate image for each model of machine.

  18. #15
    Jed
    Jed is offline
    Jed's Avatar
    Join Date
    Aug 2008
    Location
    Peacehaven
    Posts
    33
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi Guys,

    I've got sysprep workin now. Am I right in thinking that instead of using the -reboot switch (which I assume is for tesring) you remove that switch and allow sysprep to run on the first boot after deploying the image?

    Cheers,

    Jed

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •