remotely trigger a windows update scan

Copper Contributor
Is there a way to remotely trigger a windows update for business scan using PowerShell on machines that haven’t had users logon to them in awhile?

We’ve recently switched to Intune WUfB and the biggest problem we’ve had are with machines that haven’t been used recently. It seems like an initial logon and check for updates scan resolves it. Would be nice to hit those remote machines with a run script to check for updates in just one batch instead of remotely logging into the machines. Expedited Updates doesn’t do the trick either unfortunately. Is this expected behavior?
1 Reply

Helle @Jakesnyder245,

You can reach your goal only with these three commands:

Install-Module PSWindowsUpdate -Force
Get-WindowsUpdate
Install-WindowsUpdate -NotCategory "Drivers" -AcceptAll -IgnoreReboot

 

You can even be more granular.

Check this article: PSWindowsUpdate: Managing Windows Updates from PowerShell | Windows OS Hub (woshub.com)