Detect if EOP MAFE role or SafeLinksWebservice $IsEOPCapacity = !$(Get-ItemProperty Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs ...

# Detect if EOP MAFE role or SafeLinksWebservice          $IsEOPCapacity = !$(Get-ItemProperty Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs -ErrorAction SilentlyContinue).EOPMAFE          $IsSafeLinksWebservice = $(Get-ItemProperty Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs -ErrorAction SilentlyContinue).SafeLinksWebservice          if ($IsEOPCapacity -and !$IsSafeLinksWebservice)          {            ."$RoleInstallPath\Scripts\enable-LiveIDForWebApplication.ps1";            $fullPath = "$RoleInstallPath\ClientAccess\ExtendedReport\web.config";            #update app settings            set-appconfigvalue -ConfigFileFullPath:$fullPath -Element:configuration/appSettings -AppSettingKey:LiveIdAuthModuleSiteName -NewValue:$RoleDatacenterSiteName;          }