Submitted By: Antonio Luiz CamĂȘlo Chaves

Adds a network printer and sets it as the default printer.

Visual Basic
Edit|Remove
@Echo Off
REM Change \\COMPUTER\PRINTER by your printer's UNC  

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

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