Creating Security DG from CSV file.
Hello, I am using Exchange 2007 and I need to create security DG. I use the below csv file: Name,Sam distriubutiontest,distriubutiontest And the below script: Import-CSV C:\scripts\ADD_DG.csv | foreach {new-distributiongroup -name $_.name -samaccountname $_.SAM -type distribution} | Set-DistributionGroup -RequireSenderAuthenticationEnabled $False But I got the below error message: New-DistributionGroup : The value « distriubutiontest » from the properties « SamAccountName » is used by another recipient object « Company.uk/Company/Groups/BO/distriubutiontest». Specify another value At C:\Scripts\ADD_DG-SCRIPT.ps1:1 char:66 It works when it does not regard a security DG. Can you help me out with that?
April 13th, 2010 2:51pm

The DG is universal, Security Enabled
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2010 2:59pm

I think I found the pb: You need to modify your csv file: Identity,Alias company.intra/company/Groups/Agency/distriubutiontest,distriubutiontest and script: Import-CSV C:\scripts\exemple.csv | foreach {enable-distributiongroup -identity $_.identity -alias $_.alias -type Security} | Set-DistributionGroup -RequireSenderAuthenticationEnabled $False It worked for me :-D
April 13th, 2010 3:13pm

Hi,From the error message:"The value « distriubutiontest » from the properties « SamAccountName » is used by another recipient object « Company.uk/Company/Groups/BO/distriubutiontest». Specify another value"There is already a same distribution group name distriubutiontest(Company.uk/Company/Groups/BO/distriubutiontest), so please change the name in the csv file and try again. Frank Wang
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2010 6:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics