Automate optional drivers install

Pavel yannara Mirochnitchenko 13,471 Reputation points MVP
2021-03-06T12:12:39.45+00:00

These drivers will get installed only manually. The device is only 2 years old model. Is there any way to push silent command from Intune to get those drivers installed automatically?

74976-drivers.jpg

Microsoft Security | Intune | Configuration
Microsoft Security | Intune | Enrollment
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

Answer accepted by question author
Pavel yannara Mirochnitchenko 13,471 Reputation points MVP
2021-03-08T09:43:14.093+00:00

I came up with the script of my own (copied the major idea from somewhere but added options and skip errors etc.). I am testing this in Autopilot now, looks promising.

Create folder for logs

New-Item -ItemType directory -Path C:\Drivers -ErrorAction SilentlyContinue

Install prerequisite

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.021 -Force
Install-Module -Name PSWindowsUpdate -Force
Import-Module -Name PSWindowsUpdate -Force

Register to MS Update Service

Add-WUServiceManager -ServiceID "7971f918-a847-4430-9279-4a52d1efe18d" -Confirm:$false

Download and install drivers and repeat once.

Install-WindowsUpdate -Install -AcceptAll -UpdateType Driver -MicrosoftUpdate -ForceDownload -ForceInstall -IgnoreReboot -ErrorAction SilentlyContinue | Out-File "c:\Drivers\Drivers_Install_1_$(get-date -f dd-MM-yyyy).log" -Force
Install-WindowsUpdate -Install -AcceptAll -UpdateType Driver -MicrosoftUpdate -ForceDownload -ForceInstall -IgnoreReboot -ErrorAction SilentlyContinue | Out-File "c:\Drivers\Drivers_Install_2_$(get-date -f dd-MM-yyyy).log" -Force

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Reza-Ameri 45,906 Reputation points Volunteer Moderator
    2021-03-06T17:45:28.65+00:00

    There have been exciting announcement in Ignite where address your requirement , take a look at:
    https://techcommunity.microsoft.com/t5/windows-it-pro-blog/introducing-a-new-deployment-service-for-driver-and-firmware/ba-p/2176942

    Was this answer helpful?

    1 person found this answer helpful.

  2. Lu Dai-MSFT 28,536 Reputation points
    2021-03-08T08:22:48.063+00:00

    @Pavel yannara Mirochnitchenko Thanks for your reminder.

    Yes, I get this new information about windows update now and I find that Windows Update starting in version 2004 distributes only Automatic drivers for a system's devices. When Manual drivers are available for devices on the computer, the Windows Update page in the Settings app displays View optional updates.

    From intune's point of view, currently, there is no method to get drivers installed automatically. During my research, I find other customer who has the similiar request posted in Intune uservoice as below. We can vote and post our detailed request here. This is a place to collect customers' requirements and problems.
    https://microsoftintune.uservoice.com/forums/291681-ideas/suggestions/42703583-ability-to-install-optional-windows-updates

    Thanks for understanding and have a nice day.

    Was this answer helpful?

    0 comments No comments

  3. Lu Dai-MSFT 28,536 Reputation points
    2021-03-08T02:39:59.027+00:00

    @Pavel yannara Mirochnitchenko Thanks for posting in our Q&A. From your description, I know that you want to update driver via intune. If there is anything misunderstanding, feel free to let us know.

    For this issue, I find that there is a windows driver setting in Windows 10 update rings policy in intune.
    75070-image.png
    https://learn.microsoft.com/en-us/mem/intune/protect/windows-update-settings

    So it is suggested to try to use Windows 10 update rings and Windows 10 feature updates to manage updates for your Windows 10 devices. We can read the following article as a reference.
    https://learn.microsoft.com/en-us/mem/intune/protect/windows-update-for-business-configure

    If there is anything unclear, feel free to let us know.


    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.

    Was this answer helpful?


  4. S.Sengupta 33,006 Reputation points MVP Volunteer Moderator
    2021-03-06T15:04:40.057+00:00

    Was this answer helpful?


Your answer

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