top of page

PowerShell Set-ADUser

An update of multiple fields within Active Directory on multiple accounts from source file

​

$All=Import-Csv C:\Temp\Book2.csv

​

ForEach($Item in $All){

​

    $Description=$Item.Office + "," + $Item.department + "," + $Item.title

    Set-ADuser $Item.SAM -title $Item.title -Department $Item.Department -Office $Item.Office -company $Item.Company -Description $Description
 

​

Set-aduserx.PNG
bottom of page