Update description field of security group from csv file

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 4 months ago.

  • Author
  • #6196

    by Dios_007 at 2012-10-23 14:11:23

    Hi all

    Im new to powershell and would like to know how I can update the description field of 50 global security groups they are all currently blank. I have a csv file with all the group names in column A and all the description in column B.

    by DonJ at 2012-10-23 15:44:16

    Assuming your CSV column headers are 'groupname' and 'newdesc'

    Import-CSV whatever.csv | ForEach { Set-ADGroup -Identity $_.groupname -Desc $_.newdesc }

    Should do it.

    by Dios_007 at 2012-10-24 04:07:40

    Thanks i will give it a try.

    by DonJ at 2012-10-24 07:25:46

    Great! if it works, please come back and mark this as "solved," so it can help other folks in the future.

You must be logged in to reply to this topic.