This forum is closed. Thank you for your contributions.
Dear Team,
I want to disabled multiple user and add on comments in that users.
Please suggest .
Yogee
Import-Csv <PATH> | foreach{ Set-ADUser $_.User -Description "Some Description" Disable-ADAccount -Identity $_.User }
Try this: Import-Csv <PATH> | foreach{ Set-ADUser $_.User -Description "Some Description" Disable-ADAccount -Identity $_.User } $_.User is used considering that the 'User' is the column header in the csv.