Method 1) Using print server
The first command step will delete the printer if it does already exist. Doing this prevents errors that can occur from adding an already existing printer.
In the second command step, you’ll add the printer. The difference between these commands is the /gd (for global delete) is now a /ga (for global add).
In both commands /q is critical for a silent deployment. Without that parameter your deployment will hang. You can see other parameters by entering the following into a command prompt:
For your changes to take effect you may need to stop and start the print spooler. If after deploying the printer does not appear, add the following commands to your deployment:
Method 2) IP Port
In this method, you will create a TCP/IP port and then install your printer.
First, spare yourself possible errors and clear out the printer and port. For this deployment package you’ll start off with a command step with the following command (of course, substitute your own printer name and IP address in your commands):
In the next command step, you’ll add the port. Again, substitute the appropriate IP address in quotes.
Your next two steps (one for each architecture type, 32-bit vs. 64-bit) will install your printer using an install step. You’ll want to get your install files from the printer vendor and research what parameters you may need to silently install your printer driver.
For our example, (which you can watch in the video below starting at 21:53) we got a batch file from the vendor which is listed in the install step as the install file. Then, the “Include Entire Directory” box is also checked. This is important if your installation does require multiple files.
Annalisa was an employee at PDQ.