Install IP-Printer via VBS/BAT script. What's broken?
I'm attempting to install a network printer on a spread of Windows XP/Vista/7 (all 32bit).
I have the printer drivers from the OEM and attached them to the script. Which then unzips them to "C:\INF"
Following the unzip, the VBS script is run which calls the .bat file silently.
Here is the VBS script:
Set WshShell = CreateObject("WScript.Shell") cmds=WshShell.RUN("c:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\163\installC654.bat", 0, True) Set WshShell = Nothing
Here's the bat file:
Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_10.2.2.30 -h 10.2.2.30 -o raw Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "KONICA MINOLTA C754SeriesPCL" -v 3 -e "Windows NT x86" -h C:\INF -i C:\INF\Driver\Drivers\PCL\EN\Win_x86\KOAYSJ__.INF Cscript %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prnmngr.vbs -a -m "KONICA MINOLTA C754SeriesPCL" -r IP_10.2.2.30 -p "3rd Floor C654 Copier"
When I manually run the scripts, via admin rights, the printer installs flawlessly.
However, when I push the script from the KBOX, it doesn't work. No failed log messages on the KBOX, none on the client.
Any input on what isn't right?