I am researching on converting approx 500 security groups to distribution group, for an individual account command below works:
dsmod group "CN=testsecgroup1,OU=secgroup,DC=domain,DC=com" -secgrp no
I got security group DN value in a CSV file, need help to have group DN value call into the variable to insert into the command below
get-content “C:\Users\scripts\grouplist.csv” | % {Get-ADgroup $_ | dsmod group (function or variable name carry the group DN value) -secgrp no}
Could you help?
Thanks!
Inderjit