Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve DELL Service Tag
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01302513
Message ID:
01302516
Views:
6
This is the VBS, you just need to run it specifying in the run line the name of the computer. Thanks for the interest.

'Check for Arguments
If WScript.Arguments.Count = 0 Then
Wscript.Echo "Usage: GetDesllSvcTag.vbs computer1 [computer2] [computer3] ......"
WScript.Quit
End If

For Each strComputer In wscript.Arguments
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo strComputer & ": " & objSMBIOS.SerialNumber
Next

Next
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform