+ Post New Thread
Results 1 to 14 of 14
Wireless Networks Thread, Getting the GUIDs for pcs on the network in Technical; Hello, Nice to see it back up again (the site that is!). I was wondering if there was any easier/quicker ...
  1. #1

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57

    Getting the GUIDs for pcs on the network

    Hello,

    Nice to see it back up again (the site that is!).

    I was wondering if there was any easier/quicker way to obtain the GUIDs for pre-staging computers and in particular whether theres an alternative to enabling boot form network and then writing down the GUIDs. The reason being that one of my machines has a problem that when booting from the network it scrambles the screen so i cannot read the GUID. The display is fine as it has no problems any where else during the boot process and even in windows.

    I need to pre-stage for the ris today.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,993
    Thank Post
    120
    Thanked 286 Times in 263 Posts
    Rep Power
    107

    Re: Getting the GUIDs for pcs on the network

    Dont bother prestaging. Just enable custom setup in group policy and you can give the computers a name as you go through the ris screens. You can even define which OU they go into but I generally leave that blank and change the default on the server to the room I am doing at the time.
    I you really do want the GUIDs then you can get them through WMI and name is called netboot or something similar I think but I dont have a copy of a script to hand.

  3. #3

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57

    Re: Getting the GUIDs for pcs on the network

    I thought that windows itself would get the guids when joining the domain since if it did do that then all you would have to do would be to select "this computer is managed", and then choose your ri server. But that would be too easy i suppose. Looks like i will do as you suggested or just remove the option that says they need to be rep-staged (unknown client or something) then re-enable after completed.

    Thanks anyhow.

    I'm not that good at scripting at all. One of the things on my list of "To Learn.."

  4. #4
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Getting the GUIDs for pcs on the network

    Code:
    dim SystemSet
    
    Set SystemSet = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").InstancesOf ("Win32_ComputerSystemProduct")
     
    For Each SystemItem In SystemSet
      szUUID = SystemItem.UUID
      If szUUID = "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF" Then
        boolWFMCapable = 0
    	GetUUID = ""
      Else
    	GetUUID = szUUID
        boolWFMCapable = 1
      End If
    Next
    
    MsgBox GetUUID
    netbootGUID is the name of the attribute in Active Directory that stores the UUID.

    EDIT: Tweaked the script fragment to it will run standalone

  5. #5

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Getting the GUIDs for pcs on the network

    @ajbritton
    But won't what only work for RIS machines have been named manually (as per ChrisH's instructions).

    Another important question and I would really love to know the answer is it possible to rename a machine server side or would I have to use a client side script featuring NetDom command or some ADSI construct with a similar function?

  6. #6

    john's Avatar
    Join Date
    Sep 2005
    Location
    London
    Posts
    10,399
    Thank Post
    1,516
    Thanked 1,056 Times in 925 Posts
    Rep Power
    303

    Re: Getting the GUIDs for pcs on the network

    I do mine the ChrisH method just to chuck my 2p in

  7. #7
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Getting the GUIDs for pcs on the network

    @NetworkGeezer: The script extracts the UUID from the PC on which it is run. The name of the computer is not relevant.

    If you happen to have bought Dell OptiPlex PCs, then the UUID is usually written on the box the PC comes in.

  8. #8

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57

    Re: Getting the GUIDs for pcs on the network

    IS the GUID the same as the UUID. If not can i use the UUID to pre-satge clients for RIS? Never used it before if that is the case

  9. #9

    Join Date
    Mar 2006
    Posts
    537
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    19

    Re: Getting the GUIDs for pcs on the network

    I think that's the primary purpose of the UUID to help in prestaging.
    If you plan to prestage machines which have already have been deployed on the network then use ajbrittons script.

    If you have new computers where the manufacturer hasn't been considerate enough to put the UUID in the paperwork then you can find it by setting the BIOS to a boot from the network card (PXE boot). If RIS is deativated or you've pulled out the cable then you'll have a chance to read the UUID from the screen.

  10. #10
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Getting the GUIDs for pcs on the network

    You can use the script on any PC, it does not need to be on the network. Obviously though, a new PC would need to go through the tedious XP setup screens before you could run the script. The other possibility is to boot using BartPE. I believe there is a plug-in that lets you run VBScript. I don't know if WMI calls would work however.

    Some useful Microsoft RIS stuff (including script to get UUID) here

  11. #11

    Join Date
    Mar 2006
    Posts
    537
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    19

    Re: Getting the GUIDs for pcs on the network

    If you have School's Agreement, Select or any other Software Assurance based licensing scheme from Microsoft, then you can get the official Windows PE.
    The 2005 version, based on Windows 2003 SP1, has support for ADO, HTA, and most importanlty for our purposes, VBS and WMI.
    Apparently the Reatogo version of BartPE also has support for WMI.

    That said, the benefits of running the UUID discovery script off the network is minimal unless you plan to save the results to a USB flash drive.

  12. #12

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115

    Re: Getting the GUIDs for pcs on the network

    FFR, anyone can download WAIK & WinPE 2.0 (Vista) now.

  13. #13

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Getting the GUIDs for pcs on the network

    @ajbritton

    Hope you didn't feel the question about renaming managed (RIS) computers was a dig at you.

    My idea was more to with RISing the machines with the random name choosen by the client side wizard then the renaming the computer accounts when the UUIDs were established in Active Directory.
    That way you can do a standard build via RIS and then move them into a destination OU to finish the app installs via AD.

  14. #14
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: Getting the GUIDs for pcs on the network

    @NetworkGeezer

    Certainly didn't feel any digging going on! I thought you were saying that the script would only be useful against machines which were already on AD with given names.

    I posted the script in response to the original post which was asking for a way of getting at the UUID.

    In response to your question about doing 'server side renaming'. To my knowledge it is not possible. You can use Netdom, and provided the PC is switched on and not firewalled, then it can be done remotely.

SHARE:
+ Post New Thread

Similar Threads

  1. Connecting a Windows network to an RM managed Network
    By Scruff in forum Wireless Networks
    Replies: 4
    Last Post: 8th February 2010, 11:53 PM
  2. Replies: 2
    Last Post: 15th February 2008, 04:22 PM
  3. Replies: 7
    Last Post: 13th February 2008, 11:44 AM
  4. Map network drives on wireless network
    By woody in forum Windows
    Replies: 24
    Last Post: 1st December 2007, 06:27 PM
  5. terminating CAT5E network cables in network cabinets
    By broc in forum Network and Classroom Management
    Replies: 7
    Last Post: 10th July 2007, 11:54 AM

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
  •