Jump to content

network printers


Recommended Posts

During my unattended install i want to add a set of default network printers using a batch file.

I can install them using the commands below, they show up as online and i can print after the installation, but once i re-boot the computer the printers loose the network connection show up as offline and i cant print to them.

Can anyone help.......

batch file>>>>>>

@Echo off

Echo Installing Default Printers

Echo Accessing Print Server

net use /user:domain\username \\PrintServer password /persistent:NO

Echo Installing Printer one

start /wait RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /if /b "Printer One" /f %windir% \inf\ntprint.inf /r "\\PrintServer\PrinterOne" /m "HP LaserJet 5000 Series PCL6"

Echo Installing Printer two

start /wait RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /if /b "Printer Two" /f %windir%\inf\ntprint.inf /r "\\PrintServer\PrinterTwo" /m "HP LaserJet 5MP"

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...