Discussion:
WMI script to fetch DELL Servicetag
(too old to reply)
M$HANSEP
2008-03-13 08:45:01 UTC
Permalink
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


*This question was wrongly posted in
microsoft.public.windowsxp.configuration_manage *
Jason
2008-04-22 22:56:05 UTC
Permalink
The only way I know of is to query the domain for all the systems, compile
that in a list and then loop through the list and use the Win32_BIOS to pull
the info or if you already have the list of systems you can just loop through
that. Simply compile the system names/ip's in an array and use a variable in
the WMI connect string

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& arrComputerNames(i) & "\root\cimv2")

As for the password, if all the systems are domain members then any domain
admin can run the script, otherwise you would need an account that has local
rights to each system.
Post by 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
*This question was wrongly posted in
microsoft.public.windowsxp.configuration_manage *
Loading...