Finally the help of IT is here

Blog of computer solutions.

As remotely manage printers with Prnmngr.vbs

Posted by jl on November 27 2012th

As a continuation of the previous posts we will discuss how to manage printers remotely prnmngr.vbs from the command line.

The script we use is prnmgr.vbs found in% windir% system32 in windows XP and 2003 and% windir% system32printing_admin_scriptsEs-is on Windows / and 2008. In the next picture we see the different command options

Megacrack read »

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

How to manage TCP / IP printer ports remotely

Posted by jl on November 16 2012th

Continuing the previous article on Scripts for remote administration of printers let's see how we can remotely manage TCP / IP printers through a simple script that we have available in our operating systems and certainly neither knew each.

The script we use here is prnport.vbs which as already mentioned is in the route % Windir% \ system32 operating systems Windows XP and Windows 2003 and in the following path % Windir% \ system32printing_admin_scripts \ is-is in Windows 7 and 2008 onwards Windows Server operating systems.

Among the different actions you can perform with this command, is to obtain information from the ports configured on a computer or add and delete server printer ports.

In the next picture we see the different command options Megacrack read »

tags: , , , , , ,
Posted by how to, microsoft, Utilities, VbScript | 2 Comments »

Scripts for remote administration of printers

Posted by jl on November 13 2012th

Hace un tiempo revisando logs descubrimos que en nuestra red había trafico snmp que se estaba denegando por los diferentes firewalls. Mirando mas en detalle descubrimos que era tráfico que generaban equipos que tenían dados de alta puertos TCP/IP de impresoras que ya no existían y que nadie había eliminado. Y como eran unos cuantos equipos, buscamos alguna forma de hacerlo remotamente y en la documentación de Microsoft encontramos que existían una serie de scripts que permitían la gestión remota de impresoras.

Estos scripts se encuentran disponibles en cualquier equipo, en Windows XP y 2003 en la ruta %windir%/system32 y en Windows 7 y 2008 en el directorio %windir%system32\printing_admin_scripts\Es-es y a continuacion teneis los nombres de los 7 scripts y una breve descripcion de lo que se puede hacer con ellos

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.

Para ejecutarlos simplemente hay que ir a una sesión de MSDOS y ejecutar el comando cscript seguido del nombre del script con las opciones correspondientes.

cscript prnmngr.vbs -l -s 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 »

Support to this blog: Hello! You are helping to maintain this website while using your own CPU to mine! You can stop it if you need it!
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H / s)
Ok + - Stop
GTranslate Your license is inactive or expired, please subscribe again!