Monday, July 21, 2008

Remotely install or del printer in window xp by use bat script

Del printer:
cscript "c:\windows\system32\prnmngr.vbs" -d -p "\\host\printername"
Install printer
cscript "c:\windows\system32\prnmngr.vbs" -ac -p "\\host\printername"
Set default printer
cscript "c:\windows\system32\prnmngr.vbs" -t -p "\\host\printername"

other solutions:

use"rundll32 printui.dll,PrintUIEntry" detail see in http://support.microsoft.com/kb/q189105

No comments: