+ Post New Thread
Results 1 to 8 of 8
Windows Server 2008 R2 Thread, Do you need to delete computer from AD when reinstalling and joining again? in Technical; Hi, Al of our computers are given a name depending on where they are in the building. This name never ...
  1. #1

    Join Date
    Nov 2011
    Posts
    603
    Thank Post
    84
    Thanked 21 Times in 19 Posts
    Rep Power
    9

    Do you need to delete computer from AD when reinstalling and joining again?

    Hi,

    Al of our computers are given a name depending on where they are in the building. This name never changes.

    When we re-image machines we have been deleting them from the AD first and then moving them back into the correct group once completed.

    Is this necassary? If we dont delete them from the AD and then reinstall and join will all the GPO's including the software installation GPOs be applied again?

    Many thanks.

    Dan

  2. #2

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    860
    Thank Post
    273
    Thanked 130 Times in 110 Posts
    Blog Entries
    26
    Rep Power
    39
    No. We don't do that; we use WDS and when re-imaging it just puts the computer back in the right place with AD so it's hands free. All the GPO stuff gets applied and stuff gets installed. This works for a new PC replacing an older one with the same name; it overwrites the entry. Has its uses, but can be dangerous as you can knock a PC off the domain if you use the name of another machine by mistake.

    Pete

  3. Thanks to FragglePete from:

    speckytecky (2nd September 2012)

  4. #3

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    149
    Quote Originally Posted by FragglePete View Post
    Has its uses, but can be dangerous as you can knock a PC off the domain if you use the name of another machine by mistake.
    Pete
    Oh yeah, that can provide lots of fun!

    Rob

  5. #4
    bart21's Avatar
    Join Date
    Aug 2009
    Location
    peterborough
    Posts
    400
    Thank Post
    77
    Thanked 53 Times in 51 Posts
    Rep Power
    18
    No you do not need to delete from AD

    Nick

  6. #5

    Join Date
    Nov 2011
    Posts
    603
    Thank Post
    84
    Thanked 21 Times in 19 Posts
    Rep Power
    9
    Thanks all,

    We have accidently not deleted one or two before and it seemed ok but didnt know if the server logs whats been installed on a computer.

    Will save me some time.

    Just need to get WDS sorted now, guessing you can specify a name before it installs and joins.

  7. #6

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    860
    Thank Post
    273
    Thanked 130 Times in 110 Posts
    Blog Entries
    26
    Rep Power
    39
    Yes - After the initial PXE boot you get to choose the image you want and then it will ask you for computer name. Walk away and come back later when it should all be done for you. We have the restart option on as well so after the final clear up phase machine is about ready to use.

    Have been meaning to look at 'Zero Touch' solutions for WDS, things like Spec-Ops deploy which I've seen demo'd by another School - you just right click a machine in AD and select re-deploy and it restarts, PXE boots and deploys automatically with being no where near it.

    Pete

  8. #7

    Ephelyon's Avatar
    Join Date
    Aug 2008
    Location
    Cheshire, England
    Posts
    1,461
    Thank Post
    230
    Thanked 280 Times in 161 Posts
    Rep Power
    133
    You can if you do it by MAC address, which we find cumbersome at our site to do the traditional way in WDS. So we did it a less traditional way!

    We use a script that stores the computer's name in a text file on the WDS server, the name of which is its MAC address. The startup command to run the script is executed as a domain user who is the only one who can read or write to that folder. The script itself is a batch file converted into an EXE using the freeware tool available at f2ko.de. This is because it offers encryption of the target file, prompting for a password on execution (so the pupils can't randomly re-image our machines, which are all set to WDS network boot by default and prompt for F12). What's actually executed when the boot environment starts is a different script (plain old batch file) that's used as a wrapper, to make sure you can't just close the password prompt and bypass the protection.

    The encrypted name-recording script checks first to see if this computer's MAC address entry already exists. If it does, it doesn't prompt for the name. So if I do want a computer with a certain MAC address to become something else, I just change the name in the text file or delete it.

    Once the new workstation has rebooted for the first time, there's another script within the image that checks this file and sets the computer name accordingly, THEN joins the domain manually from the command line (so we have WDS set to not automatically join the domain).

    We did this because it was previously the last thing we couldn't completely automate in a satisfactory manner about the imaging process.

  9. #8

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,714
    Thank Post
    269
    Thanked 1,116 Times in 1,012 Posts
    Rep Power
    345
    I used to use Fog which was zero touch deploy. Build an image and upload to fog server. As long as the machines r set to pxe boot. The fog agent will restart the machine and install to the image selected from the Fog server. Join to ad etc etc

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 20th December 2011, 09:22 AM
  2. Replies: 21
    Last Post: 22nd September 2011, 09:28 AM
  3. A 'Do you need to print that' message
    By vote-for-pedro in forum How do you do....it?
    Replies: 8
    Last Post: 9th March 2011, 03:57 PM
  4. Replies: 1
    Last Post: 14th August 2008, 06:33 PM

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
  •