stack
03-31-2003, 08:29 AM
I am trying to enumerate printers with a script, but it hangs on only one of my servers. The script Im running is:
Set plist= GetObject("winmgmts:").InstancesOf ("Win32_Printer")
for each printer in plist
WScript.Echo printer.sharename
next
but it does nothing, just hangs. Any ideas? I have this script running on every PC in the company, it just doesnt work on one server.
Set plist= GetObject("winmgmts:").InstancesOf ("Win32_Printer")
for each printer in plist
WScript.Echo printer.sharename
next
but it does nothing, just hangs. Any ideas? I have this script running on every PC in the company, it just doesnt work on one server.