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://" + $RoleDatacenterUccSiteName + "/ ucc";              $authCookieName = "RPSAuthUCC";              $secAuthCookieName = "RPSSecAuthUCC";              ."$RoleInstallPath\Scripts\Add-SiteToRps.ps1 ";                            Adicionar-SiteToRps'                 -MsoSiteName $RoleDatacenterUccSiteName '                 -MsoSiteId '$RoleDatacenterUccSiteIdBusiness                 -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;          }