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)          {              $returnURL = "https://" + $RoleDatacenterUccSiteName + "/ucc";              $authCookieName = "RPSAuthUCC";              $secAuthCookieName = "RPSSecAuthUCC";              ."$RoleInstallPath\Scripts\Add-SiteToRps.ps1";                            Add-SiteToRps `                 -MsoSiteName $RoleDatacenterUccSiteName `                 -MsoSiteId $RoleDatacenterUccSiteIdBusiness `                 -ReturnURL $returnURL `                 -AuthCookie $authCookieName `                 -SecAuthCookie $secAuthCookieName;                            #Ensure that the Passport Relying Party Service is re-started after enabling liveID              Restart-Service RPSSVC -ErrorAction SilentlyContinue;          }