Solved

change DL to security group  using Powershell in Exchange 2010

Posted on 2014-10-08
8
196 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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
 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

786 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