Printer Driver installation

TechUST 516 Reputation points
2024-09-02T19:50:59.5466667+00:00

Hi,

I have Canon driver installation files, and I've created a PowerShell script to install them. I've successfully deployed it using SCCM, and it's getting installed. However, when I try to deploy it through Intune, I'm getting an error

$driverPath = "."

$infFile = "$driverPath\CNP60MA64.INF"

# Install the driver

pnputil /add-driver $infFile /install

# Check if the driver is installed

$driverInstalled = pnputil /enum-drivers | Select-String -Pattern "CNP60MA64"

if ($driverInstalled) {

Write-Output "Driver installation completed successfully."

} else {

Write-Output "Driver installation failed or driver not found."

}

Detection logic

User's image

Installation file -

User's image

Error from intune -

User's image

Could you please assist in identifying why this might be happening? i tried to identify but no luck.

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
957 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,970 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,457 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Simon Ren-MSFT 33,451 Reputation points Microsoft Vendor
    2024-09-03T02:08:16.33+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    You can follow below guide to install Canon Printer Driver using Win32 apps or PowerShell script to have a try:

    How to install Printer Drivers and Printers from Intune using Win32 apps and PowerShell

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Simon Ren-MSFT 33,451 Reputation points Microsoft Vendor
    2024-09-10T05:58:38.4366667+00:00

    Hi,

    Thanks for your reply. I will do more research about this question, if there is any update, I will let you know.

    Meanwhile, with Q&A limitation, it is also suggested to open an online support ticket to get the further help. Here is the support link:

    https://docs.microsoft.com/en-us/mem/get-support

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.