Wenn ($RoleDatacenterFfoEnvironment - Eq "True") { # Erstellen OspUser $ospUserName = "OspUser"; $ospUser = Get-LinkedUser ...

Wenn ($RoleDatacenterFfoEnvironment - Eq "True")            {                # Erstellen OspUser $ospUserName = "OspUser";                $ospUser = Get-LinkedUser - DomainController $RoleDomainController | {$_.Namen - Ieq $ospUserName};                Wenn (-nicht $ospUser)                {                    $ospUserUPN = $ospUserName + "@" + $RoleFullyQualifiedDomainName;                    $ospUser = New-LinkedUser-$ospUserName - UserPrincipalName $ospUserUPN nennen - DomainController $RoleDomainController;                }            }