Share via

Script or Batch file to add network printers

Anonymous
2018-06-06T18:52:31+00:00

Hello everyone,

At my last job I was privy to a script that allowed a user to click it which installed the network printer we were all using. This would be extremely helpful for our temporary staff that needs access to our printer rather than manually trying to find it. If anyone is aware of the code to add a network printer via script I would be greatly appreciative. 

Thanks,

Windows for home | Windows 10 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

19 answers

Sort by: Most helpful
  1. Anonymous
    2018-06-08T15:12:35+00:00

    Oh awesome. Great work!

    Have yourself a great weekend, and please leave a positive review if possible!

    Thanks!

    • C
    60+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-06-07T19:18:04+00:00

    Ok, try this for the batch file:

    %SystemRoot%\explorer.exe \ServerName\PrinterName

    Let me know if you have better luck.

    • C
    30+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-06-06T20:14:04+00:00

    Hi JDem,

    We should be able to accomplish this, given you know the printer server name, and the names of the printers you are trying to add.

    I just made some recently for this very purpose. Verify you have the info you’ll need and I’ll get back to you a bit later with the how to make the script and what to put in there. Just need to locate them.

    I’ll be in touch!

    • C
    7 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-06-07T19:18:24+00:00

    Space between explorer.exe and \

    6 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2018-06-07T14:50:37+00:00

    Ok,

    So here is the information that I gathered from my understanding:

    Server Name: WINESRNSPRP03

    Printer Name: us09_13_x5766

    Printer Port - 10.112.198.234

    Thanks

    5 people found this answer helpful.
    0 comments No comments