Skip to content

JustinRudebaugh/intune-printerinstall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Intune Printer Install

This repository is used to deploy printer drivers and shared printers via Microsoft Intune.

Structure

  • driver/ – Place all printer driver files here, including the .inf and all related .dll/.cat/.cab files. This folder also contains the driverinstall.ps1 script used to install the driver.
  • printer/ – Contains scripts to add printers using either IP-based setup or shared print server connections.

How to Use

1. Add Driver Files

Place your extracted printer driver package (including .inf, .cat, .dll, etc.) inside the driver/ folder.
Example contents:

driver/
├── driverinstall.ps1
├── KOAWQJA.inf
├── KOAWQJA.cat
├── koawqja.dll
└── ...

2. Package and Deploy via Intune

  1. Use the Microsoft Win32 Content Prep Tool to package the driver/ folder into a .intunewin file.
  2. In the Intune portal:
    • Upload the .intunewin file.
    • Install command:
      C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File .\driverinstall.ps1
    • Define detection logic as needed.

3. Detection Suggestions

When configuring the detection rule in Intune, you can use one or more of the following:

  • Shared printers (\server\printer):
    Check if the printer exists in the registry at:
    HKEY_CURRENT_USER\Printers\Connections\,,server.domain.local,Printer 1

  • IP-based printers:
    Check if the printer exists in the registry at:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Printer 1

  • Driver presence:
    Look for a folder named after the .inf file in:
    C:\Windows\System32\DriverStore\FileRepository

    The folder name is based on the driver's .inf file and includes architecture/hash values
    (e.g. koawqja.inf_amd64_0c123456abcdef01).

    To determine the correct folder name:

    1. Install the driver manually on a test machine or VM.
    2. Navigate to C:\Windows\System32\DriverStore\FileRepository
    3. Sort by Date modified to find the most recently created folder.
    4. Use the exact folder name for detection in Intune.

4. Deploy Printers (Optional)

To deploy shared or IP-based printers, see the scripts in the printer/ folder. These can be packaged and assigned separately in Intune.

Example Scripts

  • driverinstall.ps1 – Installs a specific printer driver using pnputil and Add-PrinterDriver.
  • deployprinterIP.ps1 – Adds printers using IP and port.
  • deployprinterShared.ps1 – Adds printers using a shared UNC path (e.g., \\server\printer).

License

MIT License

About

Install printer driver and deploy printer through intune

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 100.0%