Windows – Add network printer CMD or BAT file – SOLVED

Adding a network printer from the command line (or bat file)

@Echo Off
REM Change \\COMPUTER\PRINTER to your printer network adress

REM Add printer
rundll32 printui.dll,PrintUIEntry /in /n\\COMPUTER\PRINTER

REM Set printer as default
rundll32 printui.dll,PrintUIEntry /y /n\\COMPUTER\PRINTER

 

Leave a Comment

Your email address will not be published. Required fields are marked *