Forum Discussion
Sterrick
Oct 01, 2020Copper Contributor
Windows Patches
Is there a PowerShell script I can automate and run in Azure Intune to check all the current machines for the current Windows updates? I want to be able to automate a script to report after Patch Tu...
Animesh Joshi
Oct 04, 2020Brass Contributor
As mentioned by ranjithckm7 - the device management platform- Intune in this case will provide an overview of patch compliance and install status. It can be further utilised for detail views, querying and organising data sent in by managed devices etc.
Unsure, to what extent you want a script's functionality to be, a good starting point will be:
get-wmiObject -class win32_quickFixEngineering -computerName $cpName | where-object {$_.hotFixID -eq 'KBxxxxxx'}
-computerName parameter could be an array of devices you want to check against.