Если ($RoleDatacenterFfoEnvironment - eq "True") { # Создать OspUser $ospUserName = "OspUser"; $ospUser = $RoleDomainController get LinkedUser - DomainController |? {$_.Имя - ieq $ospUserName}; Если (-не $ospUser) { $ospUserUPN = $ospUserName + "@" + $RoleFullyQualifiedDomainName; $ospUser = New LinkedUser-имя $ospUserName - UserPrincipalName $ospUserUPN - DomainController $RoleDomainController; } }
Если ($MSExchangeAntimalwareService - ne $null- и $MSExchangeAntimalwareService.StartMode - ne "Отключено" - и $RoleStartTransportService) ...
Если ($RoleDatacenterEnableFullLanguageMode - eq "True") { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...
Если ($RoleDatacenterEnableFullLanguageMode - eq "True") { .$RoleBinPath\CentralAdminSetup.ps1; RemoveLocalComputerAccou ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { # Создать EOPChangeUser $eopChangeUserName = "EOPChangeUser"; $eopChangeUser ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { # Создать OspUser $ospUserName = "OspUser"; $ospUser = $RoleDomainController ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { $eopChangeUserName = "EOPChangeUser"; Набор ThrottlingPolicyAssociation-удостоверения ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; $True Set-User $ospUserName - RemotePowerShellEnabled ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Набор ThrottlingPolicyAssociation-удостоверения ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { Установка CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...