Avatar of JeffBeall
JeffBeallFlag for United States of America asked on

windows 7 add printers

I am adding printers at work using the

rundll32 printui.dll,PrintUIEntry

command and I am playing with the switches. what I have found is if I use

rundll32 printui.dll,PrintUIEntry /ga /c\\%1 /n\\%2

it seems to install the printer with no problems, but if I use

rundll32 printui.dll,PrintUIEntry /in /c\\%1 /n\\%2

I usually get an error that windows can't find the driver. I would keep using the /ga switch, but when I setup the printer using this switch, for some of the computers that are in a certain Organization Unit, if I do a

rundll32 printui.dll, PrintUIEntry /ge /c\\%1

that command only finds the local printers, not the network printers. So I was wondering  if I setup the printer using different switches then the network printers would show.
So any ideas how to use the

rundll32 printui.dll,PrintUIEntry

so that the drivers are installed automatically?
Windows 7Windows XP

Avatar of undefined
Last Comment
JeffBeall

8/22/2022 - Mon
SOLUTION
wyliecoyoteuk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Sandesh Dubey

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
JeffBeall

At work I'm not in the group that can change group policy.
where I work the people that setup group polcy are in a different building and don't seem very interested in help me.
therefore I try to find alternative solutions.
the link for the VBscript seems to be for xp machines, but hopefully it would work with win7
ASKER
JeffBeall

thank you
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23