Wenn ($RoleDatacenterIsManagementForest - Eq "True") { $userName = "OspAzureUser2"; $ospAzureRoleName = "OspAzure"; $roleAssignment = Get-ManagementRoleAssignment-Rolle $ospAzureRoleName - RoleAssignee $userName - DomainController $RoleDomainController; Wenn ($roleAssignment - Eq $null) { Write-ExchangeSetupLog-Info "Erstellen eine neue Rollenzuweisung für Funktion '$ospAzureRoleName' und '$userName'." Neue ManagementRoleAssignment-Rolle $ospAzureRoleName-Benutzer $userName - DomainController $RoleDomainController; }$ospElevationScriptsRoleName = "OspElevation"; $ospElevationRoleAssignment = Get-ManagementRoleAssignment-Rolle $ospElevationScriptsRoleName - RoleAssignee $userName - DomainController $RoleDomainController; Wenn ($ospElevationRoleAssignment - Eq $null) { Write-ExchangeSetupLog-Info "Erstellen eine neue Rollenzuweisung für Funktion '$ospElevationScriptsRoleName' und '$userName'." Neue ManagementRoleAssignment-Rolle $ospElevationScriptsRoleName-Benutzer $userName - DomainController $RoleDomainController; } }
Wenn ($RoleDatacenterFfoEnvironment - Eq "True") { Install-CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Wenn ($RoleDatacenterIsManagementForest - Eq "True") { "OspAzureUser2" Set-User - RemotePowerShellEnabled $true - CertificateSubject ...
Wenn ($RoleDatacenterIsManagementForest - Eq "True") { $OspAzureUser2 = Get-LinkedUser - DomainController $RoleDomainController ...
Wenn ($RoleDatacenterIsManagementForest - Eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; ...
Wenn ($RoleDatacenterIsManagementForest - Eq "True") { $userName = "OspAzureUser2"; $ospAzureRoleName = "OspAzure"; $roleAssignment ...
Wenn ($RoleDatacenterIsManagementForest - Eq "True") { Set-ThrottlingPolicyAssociation-Identity "OspAzureUser2" - ThrottlingPolicy ...
Wenn ($RoleDatacenterIsManagementForest - Eq 'True') { . $RoleBinPath\CentralAdminSetup.ps1; AddLocalComputerAccountToCentralAdminServersGroup ...
Wenn ($RoleDatacenterIsManagementForest - Eq 'True') { Add-PSSnapin Microsoft.Exchange.Management.Powershell.CentralAdmin ...
Wenn ($RoleDatacenterIsManagementForest - Eq 'True') { Neues Element HKLM:\Software\Microsoft\ExchangeServer\v15\CentralAdmin ...