Dell Service Tag - Update

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
 
T

Torgeir Bakken (MVP)

Prenoy said:
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.

Hi

In the script in the link below I add a letter in the front of the
SerialNumber, in the case the SerialNumber contains only numbers,
you will not be able to rename the computer (a computer name must
have at least one letter):

http://groups.google.com/[email protected]


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide:
http://www.microsoft.com/technet/community/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top