Wenn ($RoleDatacenterWindowsLiveIdInstance - Ine 'Gallatin') { $name = "WindowsLiveId" $metadataUrl = $RoleDatacenterFederationTrustMetadataUrl ...

Wenn ($RoleDatacenterWindowsLiveIdInstance - Ine 'Gallatin')        {            $name = "WindowsLiveId"            $metadataUrl = $RoleDatacenterFederationTrustMetadataUrl            $thumbprint = $RoleDatacenterSHA1Thumbprint            $applicationIdentifier = $RoleDatacenterSiteId            $applicationUri = $RoleDatacenterSiteName$delegationTrust = Get-FederationTrust | wobei {$_.Namen - Ieq $name};            Wenn ($delegationTrust - Eq $null)            {                Neue FederationTrust-Namen $name-Fingerabdruck $thumbprint - Parameter ApplicationIdentifier $applicationIdentifier - ApplicationUri $applicationUri - MetadataUrl $metadataUrl - Option SkipNamespaceProviderProvisioning;            }        }$name = "MicrosoftOnline"        $metadataUrl = $RoleDatacenterFederationTrustMetadataUrlBusiness        $thumbprint = $RoleDatacenterSHA1ThumbprintBusiness        $applicationIdentifier = $RoleDatacenterSiteId        $applicationUri = $RoleDatacenterSiteName$delegationTrust = Get-FederationTrust | wobei {$_.Namen - Ieq $name};        Wenn ($delegationTrust - Eq $null)        {            Neue FederationTrust-Namen $name-Fingerabdruck $thumbprint - Parameter ApplicationIdentifier $applicationIdentifier - ApplicationUri $applicationUri - MetadataUrl $metadataUrl - Option SkipNamespaceProviderProvisioning;        }