Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


get computer UUID FOR RIS

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,23910
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> get computer UUID FOR RIS
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 get computer UUID FOR RIS - 7/21/2005 9:33:57 PM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
hi,

I want to get the computer uuids for computers that are already in a win2k domain.
I tryed using a script from ms, called GetRISBIOSInfo

I have edit this script a couple of times, but for some reason it only wants to get info from Computers default directory.


I think using the Ou.filter("computer")

Does someone have a good working script for me??


Thanks in advance
 
 
Post #: 1
 
 RE: get computer UUID FOR RIS - 7/22/2005 2:34:54 AM   
  Country73


Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
Please post the script you are working on and maybe someone out here can "tweak" it a little.

(in reply to Bezerk)
 
 
Post #: 2
 
 RE: get computer UUID FOR RIS - 7/23/2005 1:32:04 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
this is what is have so far:

Dim compou
Dim objOU
Dim objComp


Const ForReading =  1
Const ADSIprov = "LDAP://"

compou = "ou=Computer Directory,cn=msscript,cn=org"
Set objSysInfo = CreateObject("ADSystemInfo")
Set objOU = GetObject(ADSIprov & compou)
objOU.Filter = Array("computer")
For Each objComp in objOU
wscript.echo "Computername:" & objComp.Name
Next

Set compou = nothing
Set objOU = nothing
set objComp = nothing
wscript.quit

the first echo doesn't work.

I just want the name and UUID and maybe some more info.


(in reply to Country73)
 
 
Post #: 3
 
 RE: get computer UUID FOR RIS - 7/23/2005 5:46:18 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Bezerk: what UUID are you specifically looking for? the CLSID in the ROOT from the Registry is full of UUID's, please clarify....

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to Bezerk)
 
 
Post #: 4
 
 RE: get computer UUID FOR RIS - 7/23/2005 6:28:29 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
im looking for the bios uuid so i can prestage clients for ris

(in reply to Snipah)
 
 
Post #: 5
 
 RE: get computer UUID FOR RIS - 7/23/2005 11:08:52 PM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
this constantly gives me a GUID of 0000000:

On error resume next
strComputer = "."
Set objService  = GetObject("winmgmts:" & strComputer & "\root\cimv2")
Set objSysComps = objService.ExecQuery("Select * from Win32_ComputerSystemProduct")
For Each SysItem in objSysComps
wscript.echo SysItem.UUID
Next


(in reply to Bezerk)
 
 
Post #: 6
 
 RE: get computer UUID FOR RIS - 7/24/2005 5:00:29 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
most BIOS-es don't give free their codes (like a lot of Compaqs)

but i will try to find a way to reveile any.....

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to Bezerk)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> get computer UUID FOR RIS Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts