Forum Discussion
robmo
May 02, 2022Brass Contributor
Dynamic collection needed
Hi, I need a dynamic collection for an update that fails with error 0x800F080F(-2146498545). I cannot find a WQL attribute class that will help me identify computers with this failure. No problem wi...
Geraldo
May 05, 2022Copper Contributor
Maybe with an Configuration Baseline (Item - Script) and from Deployment - create New Collection - Non-compliant...
https://devblogs.microsoft.com/scripting/use-powershell-to-easily-find-information-about-hotfixes/
$val = gwmi -cl win32_reliabilityRecords -filter "sourcename = 'Microsoft-Windows-WindowsUpdateClient'" | where { $_.message -match '0x800F080F' }
if ($val -eq 0)
{
$Compliant = $true
}
if ($val -ne 0)
{
$Compliant = $false
}
$Compliant
Regards, G.