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.