Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser" ; Utilisateur-$ospUserName - RemotePowerShellEnabled $True - CertificateSubject $RoleDatacenterOspCertSubjects - DomainController $RoleDomainController ;# Définir le nouveau rôle de gestion $centralAdminManagementRole = get-ManagementRole - DomainController $RoleDomainController - RoleType CentralAdminManagement | ? { $_.IsRootRole} ;$ospUserUnscopedRoleName = "OspUser-UnscopedRole" ; $ospUserUnscopedRole = get-ManagementRole - DomainController $RoleDomainController | ? {$_.Nom - ieq $ospUserUnscopedRoleName} ; Si (-pas $ospUserUnscopedRole) { $ospUserUnscopedRole = New-ManagementRole-Name $ospUserUnscopedRoleName-Parent $centralAdminManagementRole - DomainController $RoleDomainController ; } }
Si ($RoleDatacenterFfoEnvironment - eq "True") { # Créer EOPChangeUser $eopChangeUserName = "EOPChangeUser" ; $eopChangeUser ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { # Créer OspUser $ospUserName = "OspUser" ; $ospUser = get-LinkedUser - DomainController ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $eopChangeUserName = "EOPChangeUser" ; Set-ThrottlingPolicyAssociation-Identity ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser" ; Set-ThrottlingPolicyAssociation-Identity $ospUserName ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { $ospUserName = "OspUser" ; Utilisateur-$ospUserName - RemotePowerShellEnabled ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { Installation-CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { Installation-CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Si ($RoleDatacenterFfoEnvironment - ne True ) {} Si (! ()get-service MSExchangeAS | où {$_.name - eq "MSExchangeAS"})) {} ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $OspAzureUser2 = Get-LinkedUser - DomainController $RoleDomainController ...