Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help retrieving computer's SID or other Unique ID

Status
Not open for further replies.

alistairpaul

Programmer
Apr 11, 2001
100
US
Good Morning All -

Does anyone have a code snippet to help me retrieve the SID of the computer, not the current logged-in user? I'm trying to gather some system and software information from a few computers, scripted, but I need to find a unique identifier for each system without the user typing in the "Asset ID" of their computer each time it runs.

Thanks so much!
 

If these computers are on a MS network in the same domain then all's you need to id each computer uniquely is the computer name. Which I am sure is not that hard to figure out.
 
Can't check now but I think you need to investigate the "Environ" function / method. Type Environ in a code snippet and hit F1 - should point you in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top