You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
389 B
15 lines
389 B
on error resume next
|
|
|
|
set inst = GetObject("winmgmts:{impersonationLevel=impersonate}!//appliance1/root/cimv2:SA_PrinterInstaller.Name=""NTInstaller""")
|
|
|
|
result = inst.EnumManufacturers (strMfgArray)
|
|
|
|
for i=0 to UBound(strMfgArray) - 1
|
|
WSCript.Echo strMfgArray (i)
|
|
next
|
|
|
|
if err <>0 then
|
|
WScript.Echo Hex(Err.Number)
|
|
else
|
|
WScript.Echo "Returned result is " & result
|
|
end if
|