Thursday, 2 July 2020

Bulk Attribute Edit or add through PowerShell

Bulk Attribute Edit or add through PowerShell



Create Csv file in below mention format.

















Csv file Name :- pclist.csv

ForEach ($user in (import-csv -path "C:\pclist.csv"))
{
  Get-AdUser -Identity $user.samaccountname | set-aduser -replace @{displayname=$user.displayname}




No comments:

Post a Comment