Se ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; $roleAssignment = get-ManagementRoleAssignment-$userName ruolo $OspElevationScriptsRoleName - RoleAssignee - DomainController $RoleDomainController; Se ($null $roleAssignment - eq) { Scrittura-ExchangeSetupLog-Info "Creazione di una nuova assegnazione ruolo di utente e ruolo '$OspElevationScriptsRoleName' '$userName'". Nuova ManagementRoleAssignment-ruolo $OspElevationScriptsRoleName-utente $userName - DomainController $RoleDomainController; } }
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 ...
Se ($RoleDatacenterIsManagementForest - eq "True") { $policyName = Microsoft.Exchange.Data.Directory.SystemConfiguration ...
Se ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; ...
Se ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser2"; $ospAzureRoleName = "OspAzure"; $roleAssignment ...
Se ($RoleDatacenterIsManagementForest - eq "True") { Set-ThrottlingPolicyAssociation-Identity "OspAzureUser2" - ThrottlingPolicy ...
Se ($RoleDatacenterIsManagementForest - eq "True") { Set-utente "OspAzureUser2" - RemotePowerShellEnabled $true - CertificateSubject ...
Se ($RoleDatacenterIsManagementForest - eq 'True') { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...