{ 8 comments… read them below or add one }

rhian January 11, 2012 at 3:04 am

how do you query or set default a network printer…

it say ERROR when i query a network printer such as
“invalid query”

wmic printer where name=’\\printserver\printername’ call setdefaultprinter

thanks

Reply

admin January 12, 2012 at 3:42 pm

Problem seems to be that you are using the printer UNC path. Instead use the printer name. You can get the name field using wmic printer get name.
Also the printer should have been added to the computer before running the command. From the added printers list you can choose one of it as the default one. This list can be obtained from wmic printer get command.

andrewb January 17, 2012 at 4:02 am

You need to delimit your printer name, ie

wmic printer where name=’\\\\printserver\\printername’ call setdefaultprinter

rhian January 29, 2012 at 10:15 pm

thanks andrewb.. work for me. cheers.

Reply

Jeff October 31, 2013 at 6:36 pm

wmic printer get name, default only captures and returns the local printers, not networked printers. Is there a command that will list the networked printers AND tell me which is set as the default? That’s the thing I’m really fishing for, default printer for every user.

I’m making printer changes on the server, will need to reset everyone default printer after I’m done so I’m trying to get a list without remotely connecting to each user. I can get to a command line without disturbing the users.

Reply

Eavn October 16, 2015 at 5:32 pm

It lists my network printers. I have them added by IP. That may make a difference if that isn’t how you have them set up.

admin October 16, 2015 at 6:09 pm

The command lists network printers for me too. I have them added with dns name, so either way it works.

Mike January 14, 2016 at 3:50 pm

You’re correct Jeff and i’m also looking for a solution for this.

This command, wmic printer get name, default, will not get the network printers of a remote PC on the network.

Have you had any luck in searching since it has been 2 years?

Leave a Comment

Previous post:

Next post: