/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Setting Up a Network Printer for Another Computer

02/22/2017 835 views
Hello, I have a question for the command "rundll32 printui.dll PrintUIEntry"

I would like to use it to set up a Network printer on another computer, for example:

My computer has the name in the domain as MACHINE001 and I would like to perform a command to configure the printer on MACHINE002.

To set up on my computer, I use the command: rundll32 printui.dll PrintUIEntry / in / n \\ SERVIDOR001 \ PRINTER001

PS: Server001 is my print server and PRINTER001 is my network printer.

How can I configure this printer for MACHINE002?

Thanks!
1 Comment   [ + ] Show comment

Comments

  • I think you may be calling the command in slightly the wrong order. Could you try something more like rundll32 printui.dll PrintUIEntry /in \\SERVIDOR001\PRINTER001 /n MeaningfulPrinterName

All Answers

1
Printers are "installed" per-user, not per-machine, so just have the user of that machine run the same command.

BTW, the Windows SDK has a bunch of VBSes (e.g. prnmngr.vbs) for managing printers and ports which make this process a little easier.
Answered 02/23/2017 by: VBScab
Red Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ