Link to home
Start Free TrialLog in
Avatar of ITSUPPORT2
ITSUPPORT2

asked on

Install network printer by script

I want to create a script, preferably in vbs to check if a printer is installed, and if not install the printer.
Ive tried using the rundll32 printui.dll, PrintUIEntry command, but I dont think this command includes a way to check if the printer is already installed.
The script will be added to a users logon.
Does anyone have any examples?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of johnny_the_knife
johnny_the_knife

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ITSUPPORT2
ITSUPPORT2

ASKER

So as I understand it, this script can be run every time the user logs on and won't overwrite the users custom printer settings

Thanks

Thats correct.  The registry flag tells the script that the user has already had printers mapped, so won't do it again and overwrite all their settings.
Thank you