Leaked source code of windows server 2003
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.

14 lines
389 B

  1. on error resume next
  2. set inst = GetObject("winmgmts:{impersonationLevel=impersonate}!//appliance1/root/cimv2:SA_PrinterInstaller.Name=""NTInstaller""")
  3. result = inst.EnumManufacturers (strMfgArray)
  4. for i=0 to UBound(strMfgArray) - 1
  5. WSCript.Echo strMfgArray (i)
  6. next
  7. if err <>0 then
  8. WScript.Echo Hex(Err.Number)
  9. else
  10. WScript.Echo "Returned result is " & result
  11. end if