diff --git a/Fix-WindowsManagementInsturmentationWMI.ps1 b/Fix-WindowsManagementInsturmentationWMI.ps1 index 0012880..760628b 100644 --- a/Fix-WindowsManagementInsturmentationWMI.ps1 +++ b/Fix-WindowsManagementInsturmentationWMI.ps1 @@ -16,7 +16,7 @@ Function Verify-WMIFunctionality { # Test that our property has a value, and that the WBEM folder exists. If ( $(Get-CimInstance -ClassName $Class -ErrorAction SilentlyContinue | Select-Object $Property -ErrorAction SilentlyContinue).$Property -eq $null ) { Write-Error "Failed to query ${Class} for the value of ${Property}" ; $WMIErrorLevel++ } - + # Test that the WMI repository is consistent $WMIRepoStatus = (winmgmt.exe /verifyrepository) If ( ($WMIRepoStatus -contains "inconsistent") -or ($WMIRepoStatus -contains "failed" ) )