Solved

Finding machine GUID

Posted on 2004-10-05
13
4,270 Views
Last Modified: 2012-06-27
I am intending on using RIS to build workstations at remote location, using managed machinesin AD.  We currently have Compaq Evo 510 workstations deployed.  I know we can find the GUID through the BIOS but am wondering if there is another way to find the machine GUID.  
0
Comment
Question by:RichardSchlap
13 Comments
 
LVL 17

Expert Comment

by:Jared Luker
ID: 12230786
A GUID is a unique alpha-numeric string that is generated by windows (either locally or through the domain).  There would be no way to get a GUID through the systems bios.

Are you talking about getting the machine name or serial number?

Jared
0
 
LVL 4

Expert Comment

by:tengage
ID: 12230867
When you say GUID, what are you talking about?  Where does this show up in Bios?  It sounds like a job for WMI and some VB Scripts.  Usually, the BIOS information OS don't talk.  WMI is the bridge.  It is possible to write a script to pull information out of BIOS such as serial numbers or CPU temperature.

If you're looking for the machine SID, that's different (and easier).  Start by letting us know what (which) guid you're looking for.



0
 
LVL 2

Expert Comment

by:etracsupport
ID: 12230869
to get the guid of a machine enable it for dhcp setup a dhcp server and install network monitor on the dhcp server. capture while workstation is renewing address and view the dhcp discover packets for the guid
0
 
LVL 4

Expert Comment

by:tengage
ID: 12230875
PS, if you want a script to pull the serial number from BIOS, let me know.
0
 
LVL 4

Expert Comment

by:tengage
ID: 12230909
Fun things with CIMV2's Win32_SystemEnclosure Object

1.  Start | Run | WBEMTEST
2.  Connect
3.  ROOT\CIMV2 | Connect
4.  OPEN CLASS
5.  Win32_SystemEnclosure

Scroll through the list for things that WMI knows about that scripts can query / manipulate.

MSDN script library is a good source of using vbscript to talk to WMI

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/scripting_in_wmi.asp
0
 
LVL 4

Expert Comment

by:tengage
ID: 12230976
etracsupport.  

What GUID will that give you?  A GUID is a global unique IDentifier.  There are literally thousands of them on any machine.  The question mentioned that he wanted to use RIS, which poses problems with duplicate SIDs (security identifiers) which is entirely different that a GUID.  DickSchlap mentioned that the GUID he was talking about was in the BIOS, which is even more confusing.

Dick?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 2

Expert Comment

by:etracsupport
ID: 12231249
correct every computer has a machine guid which refers to hardware on the motherboard and references the network card. when you setup ris and want to create a managed computer you need the machine guid off of the computer to create a computer account in active directory which will then automatically join it to the domain and make the ris procedure less work.
0
 
LVL 4

Expert Comment

by:tengage
ID: 12231366
20 zeros followed by the MAC.  So Dick, are the machines loaded with any OS yet or are they bare?  If they do have an OS, you can run IPCONFIG and add 20 zeros to the beginning of the mac address to find out the GUID.

Also, if you do have an OS loaded, you can create a repository of Machines and GUIDs using vbscript and wmi.  Or you could write a script with PSEXEC to send the GUID to you.  If they don't have an OS loaded that you will need to either go to BIOS, use a boot disk, or capture traffic like etracsupport said.  Seems like alot of trouble to find a GUID of a machine.  If you have enough information in a Netmon capture, then you probably already know the MAC(GUID), Let us know.
0
 
LVL 2

Expert Comment

by:etracsupport
ID: 12231381
or you could just use an answer file and be done with the whole thing
0
 
LVL 2

Expert Comment

by:etracsupport
ID: 12231558
or just use a bootdisk to load basic support to track down the mac address and pad it like tengage said with 20 zeros before the mac
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 12231971
how did we get from GUIDS to MAC addresses with no feedback? LOL

I concur that there are no SIDS in the BIOS :)

Perhaps the poster means the machines SID? You can view a PC's SID in the registry under HKEY_Users (the folder near the end with the long alphanumeric name is the SID)

or use
To find all the SIDS on your network and Identify Conflicts
PSGetSID
http://www.sysinternals.com/ntw2k/freeware/psgetsid.shtml
0
 
LVL 4

Accepted Solution

by:
tengage earned 125 total points
ID: 12236658
The reason for needing the GUID ahead of time, is that it allows you to tell a certain RIS server to respond to a certain machine, and it also allows you to pre-create machine accounts for a specific client.  If the machines are being "Reloaded" and already have an OS, then coupled with PSEXEC, this script would return a remote machines GUID.

1.  Download PSEXEC from sysinternals at http://www.sysinternals.com/ntw2k/freeware/psexec.shtml
2.  Put psexec.exe in your winnt directory
3.  Create a batch file which says
psexec.exe \\RemoteComputer ipconfig /all
4.  Take the "Physical Address" and remove the dashes.
5.  Add 20 zeros to the beginning of the number
6.  Add the number to ADUC for a machine to be managed

If your machines are bare and do not already have an OS, then you can't get the GUID without either a) booting them up to PXE and capturing the DHCP ACK packet, or b) booting the machine to BIOS or a boot disk
0
 

Author Comment

by:RichardSchlap
ID: 12248957
Thank you for your comments.

Your explanation for needing the GUID is correct.  I need remote RIS servers to respond to certain machines where we can set up managed accounts and reload the OS without needing an admin account to do so.  For some reason not all of the machines we deployed generated GUIDS.  Those that did generate GUIDS, there wasn't an actual logical formula to identify these, but the GUIDS were found on the Remote Install tab in AD Users and Computer properties.  Not all were 20 0's followed by the MAC.  

For those that did not generate GUIDS, there is no Remote Install tab found in AD Users and Computers properties. I created GUIDS by tacking 20 0's in front of the MAC address and recreated their machine accounts as managed.  

There is a UUID in the BIOS, but after further investigation I found these did not match the GUID I was looking for.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now