Quantcast
Channel: Print/Fax forum
Viewing all articles
Browse latest Browse all 3156

Set default printer by port or by wildcard name

$
0
0

I need to set default printer on a large number of computers and need a simple command line that can be ran on all of them to do it.  The only similarities between the printers is they all use the same port and there is a common word in the name.

This is what I've tried and neither have worked:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "*NAME*"

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "%NAME%"

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /r "PORT"

Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -t -r "PORT"

Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -t -p "*NAME*"

Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -t -p "*NAME*"

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 3156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>