Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

AD Powershell suggestion required with DSMOD command

$
0
0

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


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>