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
BlakeBwebAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mmonizCommented:
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
0
BlakeBwebAuthor Commented:
Hello,

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

Thanks
0
mmonizCommented:
Sorry you are correct, try this one

Set-DistributionGroup -Name "name of group goes here" -Type Security
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

BlakeBwebAuthor Commented:
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
0
mmonizCommented:
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!
0
SubsunCommented:
You can use the AD module in exchange 2010 to convert the group to security..
Import-Module Activedirectory
Set-ADGroup TestDL -GroupCategory security

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BlakeBwebAuthor Commented:
Thanks for the help guys.
Subsun - your suggestion worked.
Mmoniz -  sorry no cigar for you today.

Thanks
0
BlakeBwebAuthor Commented:
Nice -  thanks for the solution Subsun
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.