add printers using command prompt

phreaqe

Golden Member
Mar 22, 2004
1,204
3
81
IS there a way to launch the add printers dialog from the command prompt? the closest i have come is prnmngr.vbs which allows you to add printers using completely the command line. that would suck. i just want to be able to launch the add printers thing. Anyone know of a way?
-Mark
 

phreaqe

Golden Member
Mar 22, 2004
1,204
3
81
nevermind. i had been searching for over an hour and didnt find anything. As soon as i posted this i found a way to do it.
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Originally posted by: phreaqe
nevermind. i had been searching for over an hour and didnt find anything. As soon as i posted this i found a way to do it.

Can you post the solution? This helps when others do a search for a similar question. :)
 

trmiv

Lifer
Oct 10, 1999
14,670
18
81
Originally posted by: Robor
Originally posted by: phreaqe
nevermind. i had been searching for over an hour and didnt find anything. As soon as i posted this i found a way to do it.

Can you post the solution? This helps when others do a search for a similar question. :)

I'm not sure exactly what he was trying to do, but if you're looking to add a network printer you can use this command:

rundll32 printui.dll,PrintUIEntry /in /n \\server\printer
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Sounds like he's just trying to launch the 'Add Printer' wizard from the command line. A quick search turned up this:

rundll32.exe printui.dll,PrintUIEntry /il

It worked. :)
 

phreaqe

Golden Member
Mar 22, 2004
1,204
3
81
Originally posted by: Robor
Sounds like he's just trying to launch the 'Add Printer' wizard from the command line. A quick search turned up this:

rundll32.exe printui.dll,PrintUIEntry /il

It worked. :)

thats the exact thing i ended up using. what did you search for to get it so quickly(i must suck at the google). i spent about and hour looking for a command like that.
 

bigi

Platinum Member
Aug 8, 2001
2,490
156
106
This is great. I once looked for it, but didn't find anything good. Now, this works well!!!

Thanks