WMI script to fetch DELL Servicetag

  • Thread starter Thread starter M$HANSEP
  • Start date Start date
M

M$HANSEP

I'm looking for a way to enumerate all servicetags in a active domain. Until
now I've tested a few existing scripts, but they fetch only one servicetag at
a time.

The classes Win32_Bios and SerialNumber and UserName are needed to list the
data I need.

Anyone have a idea? My knowledge of VBscripting isn't much, but I need the
data soon.

Regards,

PJH
 
Use WMIC to get BIOS info

Instead of a VBScript, I use a batch file that calls WMIC.EXE, like this...
WMIC.EXE bios list brief

The output looks like this...
Manufacturer Name SerialNumber SMBIOSBIOSVersion Version
Dell Inc. Phoenix ROM BIOS PLUS Version 1.10 2.4.1 8XXXXX1 2.4.1 DELL - 14

The SerialNumber can be obtained separately:
D:\>WMIC.EXE bios GET SerialNumber /VALUE

SerialNumber=835X4D1

If you have some scripting skills, you can parse this out and get the number. You can even setup a script that will get this info from many machines on a network.

For more info, try the Microsoft Script Center.

Peace
 
Last edited:
Back
Top