Shell/Bash: active directory user kopieren per powershell Example
Shell/Bash Example: This is the "active directory user kopieren per powershell" Example. compiled from many sources on the internet by SimpleTutorials.org
active directory user kopieren per powershell
[regex]$regex = "(?:,)(?'name'((CN|OU=).*))" Get-ADUser -Filter * -SearchBase "OU=Benutzer,DC=ad2016,DC=faq-o-matic,DC=net" | ForEach-Object { $ou = $regex.Match($_.DistinguishedName).Groups['name'] Write-Host($_.Name + ": $ou") $_ | Set-ADUser -Add @{info=$ou} }
* Summary: This "active directory user kopieren per powershell" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!