Gruppenrichtlinien Powershell: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 3: | Zeile 3: | ||
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" | 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" | ||
| − | =User Passwort setzten= | + | =User Passwort setzten bzw. ändern= |
| − | Set-ADAccountPassword -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -NewPassword | + | Set-ADAccountPassword -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -NewPassword $newpwd -Reset |
| + | |||
=User Account aktivieren= | =User Account aktivieren= | ||
Enable-ADAccount -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -Server:"XinuxServer.XINUX.local" | Enable-ADAccount -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -Server:"XinuxServer.XINUX.local" | ||
Version vom 26. April 2021, 08:56 Uhr
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"
User Passwort setzten bzw. ändern
Set-ADAccountPassword -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -NewPassword $newpwd -Reset
User Account aktivieren
Enable-ADAccount -Identity:"CN=Thomas Will,CN=Users,DC=XINUX,DC=local" -Server:"XinuxServer.XINUX.local"