Se ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Set-utente $ospUserName - RemotePowerShellEnabled $True CertificateSubject - $RoleDatacenterOspCertSubjects - DomainController $RoleDomainController;# Definire il nuovo ruolo di gestione $centralAdminManagementRole = ManagementRole di get - DomainController $RoleDomainController - RoleType CentralAdminManagement |? { $_.IsRootRole}$ospUserUnscopedRoleName = "OspUser-UnscopedRole"; $ospUserUnscopedRole = $RoleDomainController ManagementRole di get - DomainController |? {$_.Nome - ieq $ospUserUnscopedRoleName}; Se (-non $ospUserUnscopedRole) { $ospUserUnscopedRole = New-ManagementRole-nome $ospUserUnscopedRoleName-padre $centralAdminManagementRole - DomainController $RoleDomainController; } }
Se ($RoleDatacenterFfoEnvironment - eq "True") { # Crea EOPChangeUser $eopChangeUserName = "EOPChangeUser"; $eopChangeUser ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { # Crea OspUser $ospUserName = "OspUser"; $ospUser = $RoleDomainController ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { $eopChangeUserName = "EOPChangeUser"; Set-ThrottlingPolicyAssociation-identità ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Set-ThrottlingPolicyAssociation-identità $ospUserName ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser"; Set-utente $ospUserName - RemotePowerShellEnabled ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { Installazione-CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...
Se ($RoleDatacenterFfoEnvironment - eq "True") { Installazione-CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Se ($RoleDatacenterFfoEnvironment - ne "True") { Se (! (Get-servizio MSExchangeAS | dove {$_.name - eq "MSExchangeAS"})) ...
Se ($RoleDatacenterIsManagementForest - eq "True") { $OspAzureUser2 = LinkedUser di Get - DomainController $RoleDomainController ...