Information Technology Reference
In-Depth Information
Here is a description of the parameters:
-a | -d : Required parameter that specifies whether you will install ( -a ) or delete ( -d )
the driver.
-m DriverName : Required parameter that specifies the name of the driver that you want to
install. Driver names are frequently the same name as the printer, and should be provided
in the printer documentation. Enclose the driver name in quotation marks.
-v {0 | 1 | 2 | 3} : Optional parameter that specifies the operating system version that
will support this printer driver. A value of 0 corresponds to Windows 95, 98, or ME; a value
of 1 corresponds to Windows NT 3.51; a value of 2 corresponds to Windows NT 4.0; and a
value of 3 corresponds to Windows XP, 2000, or 2003. If omitted, the version of Windows
on which the printer driver will be installed is used.
-e Environment : Optional parameter that specifies the operating environment on the
system on which the driver will be installed. Enclose the environment value in quotation
marks. The environments and their corresponding version ( the -v switch) are as follows:
￿ Windows NT x86 (supports versions 1, 2, and 3)
￿ Windows NT Alpha_AXP (supports versions 1 and 2)
￿ Windows IA64 (supports version 3)
￿ Windows NT R4000 (supports version 1)
￿ Windows NT PowerPC (supports version 1)
￿ Windows 4.0 (supports version 0)
-s RemoteComputer : Optional parameter that specifies the NetBIOS name of the computer
whose drivers you want to list. Enclose the computer name in quotation marks.
-h Path : Optional parameter that specifies the path to the driver file. If omitted, the path
to the location from which Windows was installed will be used. This parameter is used
only if you are installing the driver, not deleting it.
-i FileName .inf : Optional parameter that specifies the name of the driver file that will be
used. If omitted, the selection will default to ntprint.inf. This parameter is used only if you
are installing the driver, not deleting it.
-u UserName -w Password : Optional parameters that provide credentials necessary to
perform the desired action.
For example, to add version 3 of the printer driver named Color Printer Driver 1 to the local
computer running Windows XP Professional and which offers a Windows NT x86-based envi-
ronment, type the following:
> cscript prndrvr.vbs -a -m "Color Printer Driver 1" -v 3 -e "Windows NT x86"
To delete the same driver, type the following:
> cscript prndrvr.vbs -d -m "Color Printer Driver 1" -v 3 -e "Windows NT x86"
Search WWH ::




Custom Search