On another workstation I receive the following message after inputting your code after $array=printerlist():

Quote:


ERROR: -2147217467
Number of printers: -11





I have one installed printer on the workstation which was there before I tried running the script.

When I run your code on my personal machine I receive the following:

Quote:


Error: 0
Number of printers: 61
SnagIt 7
pdfFactory Pro
Microsoft Office Document Image Writer
HP LaserJet 2300 Series PCL 5e
hp deskjet 990c
\\Calvin\Canon
\\CALVIN\PC Lab Laserjet





As you can see I don't have 61 printers installed, but maybe it's grabbing that from the number of drivers installed. It does display the correct printers installed on my machine though.