Detectar se função EOP MAFE ou SafeLinksWebservice $IsEOPCapacity =! $(get ItemProperty registro:: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs ...

# Detectar se função EOP MAFE ou SafeLinksWebservice          $IsEOPCapacity =! $(get ItemProperty registro:: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs - ErrorAction SilentlyContinue).EOPMAFE          $IsSafeLinksWebservice = $(get ItemProperty registro:: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeLabs - ErrorAction SilentlyContinue).SafeLinksWebservice          Se ($IsEOPCapacity- e! $IsSafeLinksWebservice)          {               $returnURL = "https://" + $RoleDatacenterSiteName + "/ ecp";               $authCookieName = "RPSAuthEOP";               $secAuthCookieName = "RPSSecAuthEOP";               ."$RoleInstallPath\Scripts\Add-SiteToRps.ps1 ";                             Adicionar-SiteToRps'                  -MsoSiteName $RoleDatacenterSiteName '                  -MsoSiteId $RoleDatacenterSiteId '                  -ReturnURL $returnURL '                  -AuthCookie $authCookieName '                  -SecAuthCookie $secAuthCookieName;                             #Ensure o serviço Passport contar parte for reiniciado após ativar liveID               Reiniciar serviço RPSSVC - ErrorAction SilentlyContinue;           }