If we add the /y switch, we can specify that printer as the default printer You can only use this switch with the /if option u – use the existing printer driver if it is already installed In our example, we are calling the printer “Printer1” Let’s take a quick look at some of the differences in our syntax: RUNDL元2 PRINTUI.DLL, PrintUIEntry /if /f %windir%\inf\ntprint.inf /b “Printer1” /m “HP LaserJet 4” /u /r “LPT1:” /Z In our example, we’re specifying the HP LaserJet 4ĭigressing for a moment, if we were going to use PrintUI.DLL to install a local printer, our syntax would look like this: When adding in-box drivers, use ntprint.inf as in our example above Let’s break down this command and look at each piece of it: RUNDL元2 PRINTUI.DLL, PrintUIEntry /ia /f %windir%\inf\ntprint.inf /m “HP LaserJet 4” For each printer or driver we want to deploy, we create a corresponding line in our PRINTUI.CMD file – for example: For this, we’re going to create a file called PRINTUI.CMD in our C:\DEPLOY folder. Once we have our list of systems, we set it aside and compile our list of print queues and printer drivers that we want to create on our target machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |