@echo off
REM --------------------------------------------------------KC 122 MFP
echo Installing KC 122 MFP
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnport.vbs -a -r IP_192.168.100.20 -h 192.168.100.20 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "KONICA MINOLTA Universal PCL" /f "\\Server\Printer Drivers\Konica-Minolta\350-250-200-MFP\Win_x64\KOB__J__.inf"
rundll32 printui.dll,PrintUIEntry /if /b "KC 122 MFP" /f "\\Server\Printer Drivers\Konica-Minolta\350-250-200-MFP\Win_x64\KOB__J__.inf" /r "IP_192.168.100.20" /m "KONICA MINOLTA Universal PCL"
RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "KC 122 MFP" 192.168.100.20
Pause
The above works but won't specify a default port. I have to do it manually. I'm trying to script it but can't seem to get it to work.
I have tried several variations of the folowing:
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -p "KC 122 MFP" -r
It only returns the Arguments and Examples...
I tried uttering the magical phrase "Printicus Installio"...that also failed.