# Copyright © 2012, Microsoft Corporation. All rights reserved. . .\cl_windowsversion.ps1 . ./utils_setupenv.ps1 function isRegistryRootCausePresentForWU($HKEY_USERS,$h,$AppData,$expectedString){ $res = Get-RegistryValue $HKEY_USERS $h $AppData if (($expectedString.replace('%USERPROFILE%',$env:userprofile)) -ne $res){ return $true } return $false } $expectedString = get-AppDataExpectedString $detected = isRegistryRootCausePresentForWU $HKEY_USERS $h "AppData" $expectedString update-diagrootcause RC_APPDATA -detected $detected