Gruppenrichtlinien Powershell

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Grundlagen, Bedingungen

User anlegen

[New-ADUser -DisplayName:"Thomas Will" -GivenName:"Thomas" -Name:"Thomas Will" -Path:"CN=Users,DC=XINUX,DC=local" -SamAccountName:"t.will" -Server:"XinuxServer.XINUX.local" -Surname:"Will" -Type:"user" -UserPrincipalName:"t.will@XINUX.local"]

Passwort setzten

Set-ADAccountPassword -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -NewPassword:"System.Security.SecureString" -Reset:$true -Server:"XinuxServer.XINUX.local"

Account aktivieren

Enable-ADAccount -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -Server:"XinuxServer.XINUX.local"