Login Logon Script Printer

In Knowledge Base Blog by angeladmin

rundll32 printui.dll,PrintUIEntry /in /n “%computername%%printername%”

if username==”Login ID” then ; use ultraedit to open all oem.inf files to search for printer.
printline2=’printui.dll,PrintUIEntry /if /b “%printername%” /f c:windowsinfoem36.inf /r “lpt1:” /m “Brother HL-2040 Series”‘
else
printline2=’printui.dll,PrintUIEntry /if /b “%printername%” /f c:windowsinfoem20.inf /r “lpt1:” /m “Samsung ML-1740 Series”‘
endif
RunShell(“rundll32″,printline2,””,@NORMAL,@WAIT)
RunShell(“rundll32”,’printui.dll,PrintUIEntry /y /n “%printername%’,””,@NORMAL,@WAIT)