Home
> Commands N-Z
> Commands P
PRNMNGR
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Adds, deletes, and lists printers or printer
connections, in addition to setting and displaying the
default printer.
Syntax
CSCRIPT PRNMNGR[.VBS]
/?
CSCRIPT PRNMNGR[.VBS]
-a
-m driver_name
-p printer_name
-r port_name
[-s [remote_computer]]
[-u user_name -w password]
CSCRIPT PRNMNGR[.VBS]
-ac
-p printer_name
CSCRIPT PRNMNGR[.VBS]
-d
-p printer_name
[-s [remote_computer]]
[-u user_name -w password]
CSCRIPT PRNMNGR[.VBS]
-x
[-s [remote_computer]]
[-u user_name -w password]
CSCRIPT PRNMNGR[.VBS]
-g
CSCRIPT PRNMNGR[.VBS]
-t
-p printer_name
CSCRIPT PRNMNGR[.VBS]
-l
[-s [remote_computer]]
[-u user_name -w password]
Displays command-line help:
CSCRIPT PRNMNGR[.VBS]
Parameters
none.
Switches
- /?
(NTXP)
- Displays help.
- -a
(NTXP)
- Specifies that you want to add a local printer.
- -ac
(NTXP)
- Specifies that you want to add a printer connection.
- -d
(NTXP)
- Specifies that you want to delete a printer.
- -g
(NTXP)
- Specifies that you want to display the default
printer.
- -l
(NTXP)
- Specifies that you want to list all the printers
for a computer.
- -m driver_name
(NTXP)
- Specifies, by name, the driver for the local
printer you want to add. Drivers are often named for
the model of printer they support.
- -p printer_name
(NTXP)
- Specifies, by name, the local printer that you
want to add/default/delete (a connection).
- -r port_name
(NTXP)
- Specifies the port to which the printer is
connected. If this is a parallel or a serial port,
use the ID of the port (for example, LPT1 or COM1).
If this is a TCP/IP port, use the port name that was
specified when the port was added.
- -s [remote_computer]
(NTXP)
- Specifies, by name, the remote computer to which
you want to add/list a local printer. If you do not
specify a computer, the printer is added/deleted to
the local computer.
- -t
(NTXP)
- Specifies that you want to set the default
printer.
- -u user_name -w password
(NTXP)
- Specifies an account with permissions to connect
by using Windows Management Instrumentation (WMI)
services to the computer to which you want to
add/delete/list a local printer. All members of the
Administrators group for that computer have these
permissions, but the permissions can also be granted
to other users. If you do not specify an account,
you must be logged on under an account with these
permissions for the command to work.
- -x
(NTXP)
- Specifies that you want to delete all printers
from a computer.
Related
none.
Notes
none.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NTXP
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively