"DC=tsm, DC=lan"
"OU=ou2, OU=ou1, DC=tsm, DC=lan"
"CN=gruppe1, OU=ou2, OU=ou1, DC=tsm, DC=lan"
"CN=benutzer1, OU=ou2, OU=ou1, DC=tsm, DC=lan"
New-ADOrganizationalUnit -Name "ou2" -Path "OU=ou1, DC=tsm, DC=lan"
New-ADGroup -Name "dl-Ordner-RW" -GroupScope DomainLocal -Path "OU=ou1, DC=tsm, DC=lan"
New-ADGroup -Name "g-Rolle" -GroupScope Global -Path "OU=ou1, DC=tsm, DC=lan"
New-ADUser -Name "anna" -Path "OU=ou1, DC=tsm, DC=lan"
New-ADUser -Name "anna" -Path "OU=ou1, DC=tsm, DC=lan" -AccountPassword (ConvertTo-SecureString -AsPlainText "Kennwort0" -Force) -ChangePasswordAtLogon $True -Enabled $True
Get-ADGroupMember -Identity "g-Rolle"
Get-ADOrganizationalUnit -Identity <dnOU> | Set-ADObject -ProtectedFromAccidentalDeletion:$false
Add-ADGroupMember -Identity "g-Rolle" -Members "anna"
Remove-ADGroupMember -Identity "g-Rolle" -Members "anna" -Confirm:$false
Remove-ADOrganizationalUnit -Identity <dnOU>
Remove-ADGroup -Identity "g-Rolle" -Confirm:$false
Remove-ADUser -Identity "anna" -Confirm:$false