Skatterbrainz / CMHealthCheck

ConfigMgr Health Check Reporting PowerShell functions
MIT License
32 stars 11 forks source link

Machines without latest WUA Agent Version check not handling Win10 versions correctly #10

Closed ColinBlackman closed 6 years ago

ColinBlackman commented 6 years ago

The first select in MachineswithoutlatestWindowsUpdateAgentVersion returns Windows 10 machines. ops.Version0, and LatestWUAVersion need to be treated like software versions instead of integers.

A quick and dirty workaround is to replace "where ops.Version0 < '6.2' and uss.LastWUAVersion < '7.6.7600.256'" in the XML file with where ops.Version0 < '6.2' and ops.Version 0 NOT LIKE '10.0%' and uss.LastWUAVersion < '7.6.7600.256'

Skatterbrainz commented 6 years ago

Thank you! I'll be working on this very soon.

Skatterbrainz commented 6 years ago

Modified lines 1806 to 1847 to exclude Windows 10 resources from the result data set.