Hi all,
I was wondering if somebody knew how I should troubleshoot this.
I'm deploying network printers through application deployment to my device collections and this is working perfectly, but now I wanted to add a little something: printer preferences through a .dat file.
This is the first part of the script which is working fine local and also through deployment:
for x86:
REM --------- PRINTERNAME
Set THISDIR = %~dp0
cscript %WINDIR%\System32\Printing_Admin_Scripts\nl-NL\Prnport.vbs -a -r IP_x.x.x.x -h x.x.x.x -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "PRINTERNAME" /f "%THISDIR%FILE.INF"
rundll32 printui.dll,PrintUIEntry /if /b "PRINTERDISPLAYNAME" /f "%THISDIR%FILE.INF" /r "IP_x.x.x.x" /m "PRINTERNAME"
for x64:
REM --------- PRINTERNAME
Set THISDIR = %~dp0
cscript %WINDIR%\System32\Printing_Admin_Scripts\nl-NL\Prnport.vbs -a -r IP_x.x.x.x -h x.x.x.x -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "PRINTERNAME" /f "%THISDIR%FILE64.INF"
rundll32 printui.dll,PrintUIEntry /if /b "PRINTERDISPLAYNAME" /f "%THISDIR%FILE64.INF" /r "IP_x.x.x.x" /m "PRINTERNAME"
This is the added part (in same cmd) which is working fine local but not through deployment:
for x86:
rundll32 printui.dll,PrintUIEntry /Sr /n "PRINTERDISPLAYNAME" /a "file.dat"
for x64:
C:\Windows\SysWOW64\rundll32 printui.dll,PrintUIEntry /Sr /n "PRINTERDISPLAYNAME" /a "file.dat"
In the AppEnforce.log it says the script executed with exit code 0, so it's k.
The printer is installed correctly but the preferences are not applied through the .dat file.
When I run the .cmd local it works like a charm. (C:\Windows\ccmcache\number\install.cmd)
Any ideas on this?
Thanks in advance!