Script windows 7 printer install




















Verify your account to enable IT peers to see that you are a professional. For anyone curious, here's the script I came up with: Powershell. View this "Best Answer" in the replies below ». Spiceworks Help Desk. The help desk software for IT. Track users' IT needs, easily, and with only the features you need. Try this rewrite:. Office Office Exchange Server.

Not an IT pro? Script Center. Sign in. United States English. Ask a question. We then just need to find the. Here, we will use the hpcuc. Download and open the example. You can use UNC paths or mapped network drives, too e.

Finally, the third line uses rundll32 and printui. Finally, rename the example. I always suggest testing on a non-production machine, if possible. Your batch file can have as many printers as you want in it. My typical batch files have anywhere from four to 24 printers. As an example, a Sharp printer I was recently working with uses the driver file su0emenu. The specific driver name will also need to be identified. Now this second command will be used to install the printer, of course replacing the parameter values with the correct info:.

Settings like tray options, paper type, and color modes will all be set to the manufacturer defaults. This is especially useful for Sharps which require their proprietary Auto Configuration be completed to get full functionality. First install the printer in a test environment. Open the Printer Properties and adjust any settings as needed. At this point the printer port is created, the printer is installed, and custom settings are imported.

The printer setup should be fully functional and ready to use. Note that this command only uninstalls the printer and does not delete the printer port. Therefore, this command can be used to uninstall any type of printer, even those utilizing local printer ports.

Using something like SCCM and need to detect if the printer installed successfully? This can help avoid accidentally detecting other printers that might have the same name but use a different port.

Copy and paste the following code into a. BAT file, then edit the variables as needed:. However, when I put it into a GPO to run the. Any ideas on how I can get around that? Like Like. Multiple keys of the same name cannot exist next to each other in Registry, so there must be some difference in these copies.

Or is that a special case that requires some changes to the above process?



0コメント

  • 1000 / 1000