Add/Delete printers with Windows built-in script PRNMNGR.vbs

As mentioned earlier in previous article, there is a built-in script in Windows 7 for printer management.

To add a printer:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\PRNMNGR.vbs -ac -p "\\server\printer"

To set default printer:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\PRNMNGR.vbs -t -p "\\server\printer"

To remove a printer:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\PRNMNGR.vbs -d -p "\\server\printer"

To remove a printer from the printer server:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\PRNMNGR.vbs -d -p "printer" -s server

For more info, just type:

 cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\PRNMNGR.vbs

Or you could read the documentation by Microsoft:

https://technet.microsoft.com/en-us/library/bb490974.aspx

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s