Если ($RoleDatacenterWindowsLiveIdInstance - счет "Gallatin") { $name = "WindowsLiveId" $metadataUrl = $RoleDatacenterFederationTrustMetadataUrl $thumbprint = $RoleDatacenterSHA1Thumbprint $applicationIdentifier = $RoleDatacenterSiteId $applicationUri = $RoleDatacenterSiteName$delegationTrust = get-FederationTrust | где {$_.Имя - ieq $name}; Если ($delegationTrust - eq $null) { Новые FederationTrust-имя $name-отпечаток $thumbprint - ApplicationIdentifier $applicationIdentifier - ApplicationUri $applicationUri - MetadataUrl $metadataUrl - SkipNamespaceProviderProvisioning; } }$name = "MicrosoftOnline" $metadataUrl = $RoleDatacenterFederationTrustMetadataUrlBusiness $thumbprint = $RoleDatacenterSHA1ThumbprintBusiness $applicationIdentifier = $RoleDatacenterSiteId $applicationUri = $RoleDatacenterSiteName$delegationTrust = get-FederationTrust | где {$_.Имя - ieq $name}; Если ($delegationTrust - eq $null) { Новые FederationTrust-имя $name-отпечаток $thumbprint - ApplicationIdentifier $applicationIdentifier - ApplicationUri $applicationUri - MetadataUrl $metadataUrl - SkipNamespaceProviderProvisioning; }
Если ($RoleDatacenterIsManagementForest - eq "Истина") { новый элемент HKLM:\Software\Microsoft\ExchangeServer\v15\CentralAdmin ...
Если ($RoleDatacenterIsManagementForest - eq "Истина") {.$RoleBinPath\CentralAdminSetup.ps1; RemoveLocalComputerAccountFromCentralAdminServersGroup ...
Если ($RoleDatacenterIsManagementForest - eq True ) {} $policyName = Microsoft.Exchange.Data.Directory.SystemConfigurati ...
Если ($RoleDatacenterWindowsLiveIdInstance - ИНЕ Галлатин ) {} . $RoleBinPath\.\Scripts\enable-edgesyncmservconfig.ps1 ' ...
Если ($RoleDatacenterWindowsLiveIdInstance - счет "Gallatin") { $name = "WindowsLiveId" $metadataUrl = $RoleDatacenterFederationTrustMetadataUrl ...
Если ($RoleExternalCASServerDomain - ne $null) { $ExternalAutoDiscoverUrl = "https://" + $RoleExternalCASServerDomain + "/ ...
Если ($RoleExternalCASServerDomain - ne $null) { $ExternalAutoDiscoverUrl = "https://" + $RoleExternalCASServerDomain + "/ ...
Если ($RoleHotmailMigration - eq $true- или $ServicePlanSettings.Organization.AddOutlookAcceptedDomains) { Новый AcceptedDomain-outlook.com ...
Если ($RoleHotmailMigration - eq $true- или $ServicePlanSettings.Organization.OpenDomainRoutingEnabled) { SET-Transportconfig ...