Trying to deploy printer settings via intune app deployment

40 Views Asked by At

Im currently trying to deploy specific Settings for a Printer via Intune (never done this b4). I found out that you can Ex- and Import Printer Settings with the "printui.exe" tool coming with Windows. I used the tool to create a .dat file of the Printer-settings and tested the Import locally in Powershell (worked perfectly).

Export: Printui.exe /Ss /n “Universal Printer” /a “c:\x\config.dat”

Import: Printui.exe /Sr /n “Universal Printer” /a “config.dat”

This alone is working perfectly without any Issues. Now; I want to do this via Intune. My way to go is the following:

I created a .ps1 file, that does the exact same thing and executes the same command as above. Then I packaged the .dat file and the ps1 file into an .intunewin file and deployed it. For some reason I just cant get it to work that way. I tried to add a line in the Script to save the .dat file locally and use that for the Import of the settings, still not the wanted result. For some reason, no matter what I try, I cant import the settings when deploying with Intune. I tried to import the Settings manually, same .dat file, same ps script and same way to call the ps script*, still didnt work.

Im not entirely sure on how .intunewin files work and what is needed for the Printui.exe to work properly, but the Command itself doesnt give any feedback either. I cant tell if the import just didnt work or if it went trough and the Problem is somewhere else.

*Command to Call the Script (used in Intune deployment) powershell.exe -executionpolicy bypass -file Install-Settings.ps1

Im pretty new to Intune and im still learning, so any help is appreciated!

0

There are 0 best solutions below