troubleshooting Question

set default printer for all users win7

Avatar of JeffBeall
JeffBeallFlag for United States of America asked on
Windows NetworkingWindows BatchWindows 7
3 Comments2 Solutions4924 ViewsLast Modified:
I'm using the following command to try and set the default printer for all users on a win7 box

rundll32 printui.dll,PrintUIEntry /y /n "D59NSI03M1"

I have this command in a batch file and I was going to plop it in the startup folder for all users.
But when I test this batch file I get this error

"Operation could not be completed ( error 0x00000709 ). Double check the printer name and make sure that the printer is connected to the network."

I copied the name out of the printer properties, and can ping the name.
I even copied the whole rundll32 command from the help file you get when you type

"rundll32 printui.dll,PrintUIEntry /?"

So I'm not sure what I'm missing, any ideas?
ASKER CERTIFIED SOLUTION
firstheartland

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros