Home > Commands N-Z > Commands P

PRNDRVR


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Adds, deletes, and lists printer drivers.


Syntax

CSCRIPT PRNDRVR[.VBS] /?

CSCRIPT PRNDRVR[.VBS] -a [-e environment] [-h path] [-i [file_name.inf]] [-m driver_name] [-s [remote_computer]] [-u user_name -w password] [-v [version]]

CSCRIPT PRNDRVR[.VBS] -d -e environment -m driver_name [-s [remote_computer]] [-u user_name -w password] -v [version]

CSCRIPT PRNDRVR[.VBS] -l [-s [remote_computer]] [-u user_name -w password]

CSCRIPT PRNDRVR[.VBS] -x [-s [remote_computer]] [-u user_name -w password]

Displays command-line help:

CSCRIPT PRNDRVR[.VBS]


Parameters

none.


Switches
/? (NTXP)
Displays help.
-a (NTXP)
Specifies that you want to install a driver.
-d (NTXP)
Specifies that you want to delete a driver.
-e environment (NTXP)
Specifies the environment for the driver you want to delete/install. If you do not specify an environment, the environment of the computer on which you are installing the driver is used:
-h path (NTXP)
Specifies the path to the driver file. If you do not specify a path, the path to the location from which Windows was installed is used.
-i [file_name.inf] (NTXP)
Specifies the file name for the driver you want to install. If you do not specify a file name, ntprint.inf is used.
-l (NTXP)
Specifies that you want to list all the drivers on a computer.
-m driver_name (NTXP)
Specifies, by name, the driver you want to delete/install. Drivers are often named for the model of printer they support.
-s [remote_computer] (NTXP)
Specifies the remote computer on which you want to delete/install/list the driver. If you do not specify a computer, the driver is deleted/installed on the local computer.
-u user_name -w password (NTXP)
Specifies an account with permissions to connect by using Windows Management Instrumentation (WMI) services to the computer that hosts the printer about which you want to delete/install/list drivers. 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.
-v [version] (NTXP)
Specifies the version of the driver you want to install. See the description of -e environment for information on which versions are available for which environment. If you do not specify a version, the version of the driver appropriate for the version of Windows running on the computer on which you are installing the driver is installed.
-x (NTXP)
Specifies that you want to delete all unused printer drivers 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