CmdID

CmdID / Commands

prndrvr

Adds, deletes, and lists printer drivers. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Adds, deletes, and lists printer drivers. This command is a Visual Basic script located in the %WINdir%\System32\printing_Admin_Scripts\<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prndrvr file, or change directories to the appropriate folder. For example: cscript %WINdir%\System32\printing_Admin_Scripts\en-US\prndrvr. Used without parameters, prndrvr displays command-line help.

cscript prndrvr {-a | -d | -l | -x | -?} [-m <model>] [-v {0|1|2|3}] [-e <environment>] [-s <Servername>] [-u <Username>] [-w <password>] [-h <path>] [-i <inf file>]
cscript prndrvr -l -s
cscript prndrvr -a -m Laser printer model 1 -v 3 -e Windows x64 -i c:\temp\Laserprinter1.inf -h c:\temp
cscript prndrvr -a -m Laser printer model 1 -v 3 -e Windows x64
-aInstalls a driver.
-dDeletes a driver.
-lLists all printer drivers installed on the server specified by the -s parameter. If you don't specify a server, Windows lists the printer drivers installed on the local computer.
-xDeletes all printer drivers and additional printer drivers not in use by a logical printer on the server specified by the -s parameter. If you don't specify a server to remove from the list, Windows deletes all unused printer drivers on the local computer.
-m <model_name>Specifies (by name) the driver you want to install. Drivers are often named for the model of printer they support. See the printer documentation for more information.
-v {0|1|2|3}Specifies the version of the driver you want to install. See the description of the -eparameter for information on which versions are available for which environment. If you don't specify a version, the version of the driver appropriate for the version of Windows running on the computer where you are installing the driver is installed.
-e <environment>Specifies the environment for the driver you want to install. If you don't specify an environment, the environment of the computer where you are installing the driver is used. The supported environment parameters are: Windows NT x86, Windows x64 or Windows IA64.
-s <Servername>Specifies the name of the remote computer that hosts the printer that you want to manage. If you don't specify a computer, the local computer is used.
-u <Username> -w <password>Specifies an account with permissions to connect to the computer that hosts the printer that you want to manage. All members of the target computer's local Administrators group have these permissions, but the permissions can also be granted to other users. If you don't specify an account, you must be logged on under an account with these permissions for the command to work.
-h <path>Specifies the path to the driver file. If you don't specify a path, the path to the location where Windows was installed is used.
-i <filename.inf>Specifies the complete path and file name for the driver you want to install. If you don't specify a file name, the script uses one of the inbox printer .inf files in the inf subdirectory of the Windows directory. if the driver path is not specified, the script searches for driver files in the driver.cab file.
/?Displays help at the command prompt.