Если ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; $True Set-User $ospUserName - RemotePowerShellEnabled - CertificateSubject $RoleDatacenterOspCertSubjects - DomainController $RoleDomainController;# Определение новой роли управления $centralAdminManagementRole = get-ManagementRole - DomainController $RoleDomainController - RoleType CentralAdminManagement |? { $_.IsRootRole};$ospUserUnscopedRoleName = "OspUser UnscopedRole"; $ospUserUnscopedRole = get-ManagementRole - DomainController $RoleDomainController |? {$_.Имя - ieq $ospUserUnscopedRoleName}; Если (-не $ospUserUnscopedRole) { $ospUserUnscopedRole = New-ManagementRole-имя $ospUserUnscopedRoleName-родительского $centralAdminManagementRole - DomainController $RoleDomainController; } }
Если ($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 ...
Если ($RoleDatacenterFfoEnvironment - eq "True") { Установка CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Если ($RoleDatacenterFfoEnvironment - ne True ) {} Если (! ()Get сервис MSExchangeAS | где {$_.name - eq "MSExchangeAS"})) ...