# Copyright © 2012, Microsoft Corporation. All rights reserved. #*================================================================================= . ./CL_windowsVersion.ps1 . ./utils_SetupEnv.ps1 . ./cl_mutexverifiers.ps1 #*================================================================================= #Function : Get-ResolverState #Purpose : update verifier %TEMP%\$tempfname #Return : $status(status of the resolver fix) #*================================================================================= function Get-ResolverState() { param($tempfname) trap [Exception]{continue;} $status = Import-Clixml -Path "$Env:TEMP\$tempfname" -ErrorAction SilentlyContinue |%{$_.status} return $status } $detected = !(Get-ResolverState "rsdatastoreWU.xml") update-diagrootcause -id RC_DataStore -Detected $detected