# Copyright © 2012, Microsoft Corporation. All rights reserved. #*================================================================================= param($error) . ./CL_windowsVersion.ps1 . ./utils_SetupEnv.ps1 . ./cl_mutexverifiers.ps1 . ./cl_windowsupdate.ps1 if(checkResolver "GenWUError" $error) { return } #function that checks whether a bunch of services are started or not using isServiceStarted function function areServicesStarted(){ $services=@() $services += "CryptSvc" $services += "bits" foreach($s in $services){ if(((isServiceStarted $s) -eq $false)){ return $false } } return $true } $notResolved = ((areServicesStarted) -eq $false) Update-DiagRootCause -id "RC_GENWUError" -instanceid $error -Detected $notResolved