Forcing a printer online using a script:
Recently while installing Zetafax 11, we noticed that some of our maintenance scripts on our XenApp servers were causing the zetafax printer to fall offline on reboot. Below is a simple to use (built in to server 2003) script that can be used to force a printer online.
The Following will force “Printer Name” to work online:
cscript C:\WINDOWS\system32\prncnfg.vbs -t -p “Printer Name” -workoffline
As an extra function, the below will rename a local printer:
Cscript %windir%\system32\Prncnfg.vbs -x -p “old printer name” -z newprintername
Categories: Printing, Scripting, VB Scripting
Printers, Scripting
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Recent Comments