not sure what changed here
This commit is contained in:
@@ -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" ) )
|
||||
|
||||
Reference in New Issue
Block a user