Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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}
}
Comment

PREVIOUS NEXT
Code Example
Shell :: fstab linux mint 
Shell :: background desktop by url ubuntu 
Shell :: launch tensorboard remotely 
Shell :: bash tr squeeze space 
Shell :: what to do if linux is not responding 
Shell :: windows loader modified uninstall other cracks 
Shell :: git bash authentication failed not asking for password 
Shell :: To Move all files, but not folders: 
Shell :: backup public_html 
Shell :: powershell task scheduler 
Shell :: remove file kali linux 
Shell :: kubernetes Networking best option 
Shell :: ubuntu for hp 840 g1 
Shell :: opera mini for ubuntu 18.04 
Shell :: pip increase timeout duration 
Shell :: how to change to previous directory 
Shell :: git revert file 
Shell :: switching branch in git 
Shell :: ansible max hosts? 
Shell :: delete .lastupdated maven 
Shell :: sol-merger usage 
Shell :: nginx server missing webmin 
Shell :: pinch on linux 
Shell :: install htop sudo add-apt-repository universe 
Shell :: sort files 
Shell :: apt install dbreaver 
Shell :: ros galactic build 
Shell :: How to create a gpt partition table with fdisk 
Shell :: allow user to run any command ubuntu 
Shell :: bash directorry permision if 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =