Wenn ($RoleDatacenterIsManagementForest - Eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; $roleAssignment = Get-ManagementRoleAssignment-Rolle-$OspElevationScriptsRoleName - RoleAssignee $userName - DomainController $RoleDomainController; Wenn ($roleAssignment - 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-CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...
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 ...