Network printer installation ran as a job

Network printer installation ran as a job

I am having a ton of trouble writing a script to install network printers to all users by dropping a job with this script included. Here is the script im trying to get working.

rundll32 printui.dll,PrintUIEntry /ga /q /n\\server\printer
:: restart print spooler
START /WAIT SC STOP spooler
START /WAIT SC START spooler

After looking through the switches, im using /ga to add it for all users which is very crucial, /q for not displaying error messages, and /n to to out to the network for the printer. I also added the restart of the print spooler on the bottom.

This script sais its completed successfully in the Deployment Console, but no matter who's logged on to the domain, ththis printer doesn't show up. I have tried several other commands such as /in as well as /y and I cannot get it to work.

Any suggestions would be greatly appreciated.

Thank you,

=Brandon

Network printer installation ran as a job

Brandon,

Have you verified that the printer may only be getting installed under the profile of the altiris account you are using to do the push?

Though I think this is just a limit to installing this way if I remember correctly.

If that is the case. I would create a job to copy the file down to the workstation and then chain it to a job to create a line in RunOnce in the registry to run your installation script and that way every user who logs in would run it and that would be a work around.

Basically it becomes a login script.

Here is a link also for using that /qa switch:
http://members.shaw.ca/bsanders/NetPrinterAllUsers...

Hope this helps.

~Terry

Here is a vbscript I used

Here is a vbscript I used to use:

Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network") 
objPrinter.SetDefaultPrinter "\\printserver\printer"
' End of example VBScript

The script will only truly

nrhudson's picture

The script will only truly run in DS if you run it with a user account instead of the system account. the system account does not have access to a network printer.

Nate Hudson
Senior Systems Engineer
West Bend Mutual Insurance

You may want to adding some

You may want to adding some quotes for your script. The command will not see your switchs due to the space.

START /WAIT "SC STOP spooler"
START /WAIT "SC START spooler"

Syndicate content