+ Post New Thread
Results 1 to 14 of 14
How do you do....it? Thread, Export Computer GUIDs from AD in Technical; Anybody got an idea about how I can export computer GUIDs/computer names and reimport them into a different AD on ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Export Computer GUIDs from AD

    Anybody got an idea about how I can export computer GUIDs/computer names and reimport them into a different AD on a different network?

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419
    If you did export them and import them into a new ad the computer account passwords wouldn't match.

    Ben

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    Realistically you'd need to create a trust between the two domains, but this could get complicated and I'm not 100% sure if it would work as I'm guessing you'll want to kill the old domain afterwards.
    I think you'd be better off copying Sysprep files (using a script) to each workstation with an answer file. You could automate it further (if you're happy with the existing computer names) so your workstations would join your new domain, with the correct SID information.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    115
    Thanked 528 Times in 451 Posts
    Blog Entries
    2
    Rep Power
    124
    What are you trying to do? Is this a new network that you're setting up and you don't want to have to reinstall all the machines? If so, this - Download details: Active Directory Migration Tool v3.0 - might help

  5. #5

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    What I'm trying to do is take the machine name/GUID/location from our current AD, and import these into a new AD as a managed computer. Then when I rebuild my machines onto the new network it will pick up the GUID, give it a name, and already be in the correct location.

    Think all I'm going to do is rename the WDS settings to the correct location/naming convention, build a room, rename WDS setting, build a room and so on and so forth.

  6. #6

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    115
    Thanked 528 Times in 451 Posts
    Blog Entries
    2
    Rep Power
    124
    Ok; you should be able to get that with CSVDE:

    Code:
    csvde  -f comps.csv   -r "(&(objectclass=computer)(name=maws414*))" -l "name, objectguid,location"
    this creates a file called comps.csv; restricts the output to computers with a name beginning maws414 and lists the fields name, objectguid and location (you also get the distinguishedname but you can just cut that out in Excel if you don't need it0

  7. Thanks to srochford from:

    Hightower (17th March 2011)

  8. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by srochford View Post
    Ok; you should be able to get that with CSVDE:

    Code:
    csvde  -f comps.csv   -r "(&(objectclass=computer)(name=maws414*))" -l "name, objectguid,location"
    this creates a file called comps.csv; restricts the output to computers with a name beginning maws414 and lists the fields name, objectguid and location (you also get the distinguishedname but you can just cut that out in Excel if you don't need it0
    That's 50% of the equation - now how to import these accounts into my new AD structure?

  9. #8

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,144
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    77
    Try to using csvde -i -f yourcsvfilename.csv.

    Create one entry in the csv file and test.

  10. #9
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,309
    Thank Post
    54
    Thanked 290 Times in 227 Posts
    Blog Entries
    6
    Rep Power
    116
    Were the computers built and joined to the existing domain using RIS/WDS previously? If not, they're not going to have network GUIDs associated to them.

  11. #10

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Export worked perfectly, but wouldn't allow to import as apparent objectGuids are protected on import using csvde. Any more suggestions?

  12. #11

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Found a way around this - using WDSUTIL from command prompt.

    Command was WDSUTIL /Add-Device /Device:COMPUTER-NAME /IDbjectGUID

    Did a batch file for all computers and they are now in. Now just dragging them all to the correct OU, and then trying a rebuild to see how we get on. Thanks for all the help

  13. #12
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,309
    Thank Post
    54
    Thanked 290 Times in 227 Posts
    Blog Entries
    6
    Rep Power
    116
    I'm not convinced the objectGUID is the one that you want, I think you need the netbootGUID.

  14. #13

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by Norphy View Post
    I'm not convinced the objectGUID is the one that you want, I think you need the netbootGUID.
    I think you're right. Any idea how to export the netbootGUID for machines that have never done a PXE boot? Is the netboot something linked to the MAC? If so, is it possible to get the MAC and create the netbootGUID?

  15. #14

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Looking at it, I think the easiest thing to do is tick the "Admin must approve unknown clients" in WDS. This way I can right click and "name and approve" in WDS for unknown, whereas rebuilding a known client will just pick up the right name straight away

SHARE:
+ Post New Thread

Similar Threads

  1. tempory files that look like GUIDs/SIDs
    By k-strider in forum Office Software
    Replies: 1
    Last Post: 15th February 2011, 05:10 PM
  2. AD Export
    By Grommit in forum Windows
    Replies: 2
    Last Post: 28th September 2009, 12:38 PM
  3. NOVA Export
    By binky in forum MIS Systems
    Replies: 0
    Last Post: 2nd July 2008, 07:22 PM
  4. Replies: 7
    Last Post: 13th February 2008, 11:44 AM
  5. Getting the GUIDs for pcs on the network
    By HodgeHi in forum Wireless Networks
    Replies: 13
    Last Post: 4th December 2006, 09: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
  •