Si ($RoleDatacenterIsManagementForest - eq "True") { $OspAzureUser2 = Get-LinkedUser - DomainController $RoleDomainController | où {$_.Nom - ieq "OspAzureUser2"} ; Si ($OspAzureUser2 - eq $null) { $OspAzureUser2UPN = "OspAzureUser2 @" + $RoleFullyQualifiedDomainName ; $OspAzureUser2 = LinkedUser-nouvelle-nommer « OspAzureUser2 » - UserPrincipalName $OspAzureUser2UPN - DomainController $RoleDomainController ; } }
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 ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser" ; $OspElevationScriptsRoleName = "OspElevation" ...
Si ($RoleDatacenterIsManagementForest - eq "True") { $userName = "OspAzureUser2" ; $ospAzureRoleName = "OspAzure" ; $roleAssignment ...
Si ($RoleDatacenterIsManagementForest - eq "True") { Ensemble-utilisateur OspAzureUser2 - RemotePowerShellEnabled $true - ...
Si ($RoleDatacenterIsManagementForest - eq "True") { Set-ThrottlingPolicyAssociation-ThrottlingPolicy - Identity OspAzureUser2 ...