Jump to content

installing network printer based on pc name


Recommended Posts

Posted

Hi guys,

 

I am trying to use the following logon script;

 

IF %COMPUTERNAME:~0,3%==IT- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\ICTLaser"

 

IF %COMPUTERNAME:~0,3%==S5- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\S5Laser"

 

IF %COMPUTERNAME:~0,6%==MEDIA- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\MediaLaser" rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\AdminLaser"

 

IF %COMPUTERNAME:~0,8%==LIBRARY- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\LibraryLaser"

 

IF %COMPUTERNAME:~0,11%==TECHNOLOGY- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\TechnologyLaser"

 

IF %COMPUTERNAME:~0,12%==LEARNINGSUP- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\S5Laser" rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\StaffLaser"

 

IF %COMPUTERNAME:~0,10%==GEOGRAPHY- rundll32 printui.dll PrintUIEntry /q /in /n "\\appsserver\S5Laser"

 

This works great and installs the required printer based on the PC name that the user is logging on to. The only problem is that there is a 'installing printer' box. I would prefer it to install silently so that the pupils do not click on cancel. Can anyone help?

Posted

This works great and installs the required printer based on the PC name that the user is logging on to. The only problem is that there is a 'installing printer' box. I would prefer it to install silently so that the pupils do not click on cancel. Can anyone help?

 

For some reason the printui.dll seems to ignore the /q which is meant to install the printer quietly.

 

Your best option for invisble installation is a proper scripting language like VB Script or KiXtart

Posted
Thank you to both of you for responding. I am experienced with batch files etc, but I am a complete novice with VBS. Has anyone carried out this sort of installation before?
Posted

Look at the Wiki, it "just works", only on windows though ;)

 

Seriously, if you have any experiance of a CLI you couldnt possibly go wrong with the scripts provided.

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



×
×
  • Create New...