Finally the help of IT is here

Blog of computer solutions.

Scripts for remote administration of printers

Posted by jl on November 13 2012th

It makes a reviewing logs found that our network had SNMP traffic that was denied by the different firewalls time. Looking at more detailed discovered that traffic was generated teams were discharged TCP / IP printer ports that no longer existed and that no one had removed. And as they were a few teams, we look for some way to do it remotely and in the documentation of Microsoft found that there were a number of scripts that enabled remote printer management.

These scripts are available from any computer, Windows XP and 2003 in the path% windir% / system32 and Windows 7 and 2008 in the% windir% system32 \ Printing_Admin_Scripts \ directory is-is and then you have the names of the 7 scripts and a short description of what you can do with them

Prncnfg.vbs - Sets or displays information about a printer.

Prndrvr.vbs - Adds, deletes, and lists printer drivers.

Prnjobs.vbs - Pauses, resumes, cancels, and lists print jobs.

Prnmngr.vbs - Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.

prnport.vbs - Creates, deletes, and lists the ports TCP / IP standard printer, in addition to displaying and changing port configuration.

Prnqctl.vbs - Print a test page, pause or resume a printer, and clears a printer queue.

pubprn.vbs - Publish a printer in the directory service Active Directory.

To run you just have to go to a MSDOS session and run the command cscript followed the script name with options.

cscript Prnmngr.vbs -s -l equipo_pru

show all printers installed on the computer name equipo_pru

Not to extend this post but will post some examples in other post where we can see a practical use and we use very often.

Greetings.

tags: , , , , , ,
Posted by how to, microsoft, scripts, Utilities | 3 Comments »

GTranslate Your license is inactive or expired, please subscribe again!