Automate optional drivers install

Pavel yannara Mirochnitchenko 12,411 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

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,922 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,814 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,320 questions
0 comments No comments
{count} vote

Accepted answer
  1. Pavel yannara Mirochnitchenko 12,411 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

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Reza-Ameri 16,866 Reputation points
    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

    1 person found this answer helpful.

  2. S.Sengupta 17,311 Reputation points MVP
    2021-03-06T15:04:40.057+00:00

  3. Lu Dai-MSFT 28,371 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.


  4. Lu Dai-MSFT 28,371 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.

    0 comments No comments