Problem:
How to add a TCP/IP Printer via application launcher rules and printer admin scripts that are located in C:\Windows\System32\Printing_Admin_Scripts.
Possible Resolution(s):
Add Application Launcher rules to install the print driver, create the port and finally create the printer.
- Install the print driver. Use the following options in a new Application Launcher rule:
- Filespec:
C:\windows\system32\cmd.exe - Arguments:
/c cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs" -a -m "<Printer Driver Name>" -i "<x:\Path\INF File.INF>"
NOTE: The printer driver name is found in the inf file.
- Filespec:
- Install the printer port. Use the following options in a new Application Launcher rule:
- Filespec:
C:\windows\system32\cmd.exe - Arguments:
/c cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs" -a -r <Port Name> -h <Printer IP Address> -o raw
- Filespec:
- Install the printer. Use the following options in a new Application Launcher rule:
- Filespec:
C:\windows\system32\cmd.exe - Arguments:
/c cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs" -a -p "<Printer Name>" -m "<Printer Driver Name from the first rule>" -r "<Printer Port Name the second rule>"
- Filespec:
Product: ProfileUnity
Product Version: 6.8.4