Si ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; $roleAssignment = get-ManagementRoleAssignment-RoleAssignee - $OspElevationScriptsRoleName función $userName - DomainController $RoleDomainController; Si ($roleAssignment - eq $null) { Escritura ExchangeSetupLog-Info "Creación de una nueva asignación de funciones de usuario y la función '$OspElevationScriptsRoleName' '$userName'". Nuevo ManagementRoleAssignment-función $OspElevationScriptsRoleName-usuario $userName - DomainController $RoleDomainController; } }
Si ($RoleDatacenterFfoEnvironment - eq "True") { Install-CannedRbacRoleAssignments - InvocationMode $RoleInstallationMode ...
Si ($RoleDatacenterFfoEnvironment - eq "True") { Install-CannedRbacRoles - InvocationMode $RoleInstallationMode - DomainController ...
Si ($RoleDatacenterFfoEnvironment - ne "True") {} Si (! ()obtener-servicio MSExchangeAS | donde {$_.name - eq "MSExchangeAS"})) ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $OspAzureUser2 = Get-LinkedUser - DomainController $RoleDomainController ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser"; $OspElevationScriptsRoleName = "OspElevation"; ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser2"; $ospAzureRoleName = "OspAzure"; $roleAssignment ...
Si ($RoleDatacenterIsManagementForest - eq "True") { Conjunto de usuario "OspAzureUser2" - RemotePowerShellEnabled $true ...
Si ($RoleDatacenterIsManagementForest - eq "True") { Set-ThrottlingPolicyAssociation-Identity "OspAzureUser2" - ThrottlingPolicy ...
Si ($RoleDatacenterIsManagementForest - eq "True") {} $policyName = Microsoft.Exchange.Data.Directory.SystemConfiguratio ...