Author Posts

January 1, 2012 at 12:00 am

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.