Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×
  • entry
    1
  • comments
    0
  • views
    642

Guide: Intune Printer Deployment


Hi All,

A big massive thank you to Ben Whitemore!

After countless hours spent researching how to bypass universal print and deploy out a network printer I found a 100% working solution. The best thing is that it is actually really simple to deploy.

So...

The process is the following, we are going to create a Win32 App which has all of the printer drivers and two powershell scripts, one is a install script and the other is a uninstall script. We do not edit the scripts at all and instead set all of our parameters for printer ip, driver names etc in the install command itself.

1. Create a folder wherever you want to work out of, I chose C:\Temp

2. Download IntuneWinAppUtil.exe and place it in the temp folder

3. Create a new folder in Temp called Printer (C:\Temp\Printer)

4. Create two powershell scripts in the Printer folder by copying and pasting the code below

Install-printer.ps1 Uninstall-printer.ps1

5. Download the printer driver for the printer and place all the files in the C:\Temp\Printer folder, the printer driver files will be where the .inf file is

6. Find out what the printer driver name is by opening the .INF file or by installing the printer driver and getting the driver name from the list

7. Open CMD as a Administrator and run the following command

cd C:\Temp\

.\IntuneWinAppUtil.exe

Source Folder: C:\Temp\Printer

Setup File: Install-Printer.ps1

Output Folder: C:\Temp\Printer

Catalog: N

We have now created the Win32 App in C:\Temp\Printer and are now going to deploy the app via Intune

8. Go to Intune Admin Center, Apps, Add a App, Win32App and select the Win32App you just made

9. Enter the Install and Uninstall command and obviously change it to your driver name, ip etc (the bits in bold)

Install Command:

powershell.exe -executionpolicy bypass -file .\Install-Printer.ps1 -PortName "IP_192.168.1.1" -PrinterIP "192.168.1.1" -PrinterName "Printer Colour" -DriverName "TOSHIBA Universal Printer 2" -INFFile "eSf6u.inf"

 

Uninstall Command:

powershell.exe -executionpolicy bypass -file .\Uninstall-Printer.ps1 -PrinterName "Printer Colour"

 

10. Set the requirements to the below:wCb3vYYQWTyMAAAAABJRU5ErkJggg==

11. Set the Detection Rule to the following but change the bold text, so at the end of the keypath needs to be the printer name and the value needs to be the printer name.

Rule Type: Registry Key Path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\Printer Colour Value Name: Name Detection Method: String Comparison Operator: Equals Value: Printer Colour

12. Set your deployment groups / users

13. Thank this post

14. Have a great day!

Do you need technical advice, SharePoint migration assistance, or have general Microsoft Cloud queries? Visit https://western-computers.co.uk/ for expert support and guidance.

0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...