Link to home
Start Free TrialLog in
Avatar of BlakeBweb
BlakeBweb

asked on

change DL to security group using Powershell in Exchange 2010

Hello

I'm looking for a PS command that will change a DL to a security group.

I know I can do this in AD so not need to tell me how to do it there.

Regards
Avatar of mmoniz
mmoniz

Hi there, I have gone to 2013 now but in 2010 I used this PS command:

Enable-DistributionGroup -Identity "name of group goes here"

hope that helps!
Mike
Avatar of BlakeBweb

ASKER

Hello,

Doesn't that command mail enable a distribution list which by default in 2010 is already mail enabled.?

Thanks
Sorry you are correct, try this one

Set-DistributionGroup -Name "name of group goes here" -Type Security
Hello,

I have tried that already and no success.

[PS] C:\>Set-DistributionGroup -Name myDL@mydomain.com -Type Security
A positional parameter cannot be found that accepts argument 'Security'.
    + CategoryInfo          : InvalidArgument: (:) [Set-DistributionGroup], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Set-DistributionGroup

Any other suggestions?
Thanks
Sorry, I got that from the 2013 Command list, in looking thru 2010 commands I do not see any that will work the same.  My apologies!
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the help guys.
Subsun - your suggestion worked.
Mmoniz -  sorry no cigar for you today.

Thanks
Nice -  thanks for the solution Subsun