P
Prenoy Brent
I have seen posts asking for the Dell Service Tag
retrievals and automatic insertion of it as the computer
names.
Following vbscript file will show the asset tag, but any
one please let all know how to use this script
effectively, after sysprep, sothat it autmatically inserts
the serial number as the computer name.
possible ways are like, parse the output of this script
during after the sysprep, then automatic insertion
the script I found is
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer
& "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber
Next
retrievals and automatic insertion of it as the computer
names.
Following vbscript file will show the asset tag, but any
one please let all know how to use this script
effectively, after sysprep, sothat it autmatically inserts
the serial number as the computer name.
possible ways are like, parse the output of this script
during after the sysprep, then automatic insertion
the script I found is
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer
& "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber
Next