Printer installation via Intune

Printer installation looks straightforward, but when it comes to big organizations, multiple printers and IT are required for installation, and it becomes a burden for the IT team. We will create a configuration for Printer installation via Intune so that users can install the printer by themselves from the company portal.

Script preparation and Intune configuration

So for app deployment, we need to create a PowerShell script and create an intunewin package. In PowerShell Script doesn’t have to type anything, you can mention only “Hello World” and save the script.

Now move to the Intune portal and start configuration:

Printer installation via Intune

  • Choose Win32 option.
  • Upload the created .intunewin file
  • In the program section fill up the following details
    • Install command:exe -command ‘Write-Host “Installing printer [add printer name] – do not close this window…”;Add-Printer -ConnectionName “\\server.fqdn.com\printername”’
    • Uninstall command: exe -command ‘Remove-Printer -Name “printer-name”’
    • Install behaviour: User
    • Device restart behaviour: No specific action

Printer installation via Intune

  • Go next to requirement, choose the operating systems which you are targeting and click on Next.
  • In the detection rule we can identify printers from the registry, so let’s create a rule for it.
    • Rules format: Manually configure detection rules
    • Rule type: Registry
    • Key path: Computer\HKEY_CURRENT_USER\Printers\Connections\;;SERVERPATH;PRINTERNAME
    • Detection method: Key Exists
  • As there is no dependency, click on next without selecting anything.
  • Select no supersedence.
  • Choose the tag or leave it as default.
  • Assignment should be your target user mark as available, so users can install by themselves

Test the configuration

  • Open the company portal in the user’s system
  • Search for the configured printer
  • Click on Install

Hope this helps some people who just want a simple solution rather than the cloud-native solution.

————————————————————————————————————

Check out more about Intune & I have a specific section for Windows troubleshooting  I hope you will like to explore.

Always check the Microsoft Learn website for new study programmes.

Leave a comment