Solved

change DL to security group  using Powershell in Exchange 2010

Posted on 2014-10-08
8
188 Views
Last Modified: 2014-10-10
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
0
Comment
Question by:BlakeBweb
  • 4
  • 3
8 Comments
 

Expert Comment

by:mmoniz
ID: 40368678
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
 

Author Comment

by:BlakeBweb
ID: 40368704
Hello,

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

Thanks
0
 

Expert Comment

by:mmoniz
ID: 40368824
Sorry you are correct, try this one

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

Author Comment

by:BlakeBweb
ID: 40370188
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Expert Comment

by:mmoniz
ID: 40371109
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
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 40371287
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
 

Author Comment

by:BlakeBweb
ID: 40372561
Thanks for the help guys.
Subsun - your suggestion worked.
Mmoniz -  sorry no cigar for you today.

Thanks
0
 

Author Closing Comment

by:BlakeBweb
ID: 40372563
Nice -  thanks for the solution Subsun
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now