Add Printers with Batchfile

Aus Bennys Wiki
Wechseln zu: Navigation, Suche


general[Bearbeiten]

  • this works only with Windows 2k, XP and 2003 Server
  • printerdriver have to be installed firsttime by an admin user!
  • works fine with Domaincontoller and logon.bat (e.g. Samba)

the file[Bearbeiten]

@echo off
rem add a PDF Printer
rundll32 printui.dll,PrintUIEntry /in /n \\server\pdf
rem add a HP LaserJet 1320 Printer
rundll32 printui.dll,PrintUIEntry /in /n \\server\hplj1320
rem HP LaserJet 1320 als default
rundll32 printui.dll,PrintUIEntry /y /n \\server\hplj1320

further information[Bearbeiten]

see also

rundll32 printui.dll,PrintUIEntry /?