Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Conjunto de usuario $ospUserName - RemotePowerShellEnabled $True - CertificateSubject $RoleDatacenterOspCertSubjects - DomainController $RoleDomainController;# Definir la nueva función de gestión ¿$centraladminmanagementrole = get-ManagementRole - DomainController $RoleDomainController - RoleType CentralAdminManagement |? { $_.IsRootRole};$ospUserUnscopedRoleName = "UnscopedRole OspUser"; ¿$ospuserunscopedrole = $RoleDomainController de ManagementRole de get - DomainController |? {$_.Nombre: ieq $ospUserUnscopedRoleName}; Si (-no $ospUserUnscopedRole) { $ospUserUnscopedRole = New ManagementRole-nombre de $ospUserUnscopedRoleName-$centralAdminManagementRole - DomainController $RoleDomainController; los padres } }
Si ($RoleDatacenterEnableFullLanguageMode - eq "True") { .$RoleBinPath\CentralAdminSetup.ps1; RemoveLocalComputerAccountFromCentralAdminServersGroup ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { # Crear EOPChangeUser $eopChangeUserName = "EOPChangeUser"; $eopchangeuser ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { # Crear OspUser $ospUserName = "OspUser"; $ospuser = $RoleDomainController ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $eopChangeUserName = "EOPChangeUser"; Set-ThrottlingPolicyAssociation-ThrottlingPolicy ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Conjunto de usuario $ospUserName - RemotePowerShellEnabled ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Set-ThrottlingPolicyAssociation-ThrottlingPolicy ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { Install-CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { Install-CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Si ($RoleDatacenterFfoEnvironment - ne "True") {} Si (! ()obtener-servicio MSExchangeAS | donde {$_.name - eq "MSExchangeAS"})) ...