not sure what changed here

This commit is contained in:
2023-03-14 21:58:20 -04:00
parent 7ce453114b
commit c9502bf051
+1 -1
View File
@@ -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" ) )