Announcement

Collapse
No announcement yet.

Convert Distribution to Security Group via PowerShell?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Convert Distribution to Security Group via PowerShell?

    We have a need to convert quite a few distribution groups to security groups in Exchange 2007. Can that be done via PowerShell?

    Thanks.
    Last edited by mameisberger; 26th November 2008, 13:59.

  • #2
    Re: Convert Distribution to Security Group via PowerShell?

    The groupType attribute is the one which is controlling the security and distribution "Group type" for any group-object

    The values are:
    a) For Distribution "Group type", the value is: 8

    b) for Universal security group: -2147483640
    for gloabl security group: -2147483646

    And my sample is:
    write-Output "Start"
    $x=[ADSI]"LDAP://localhost:389/cn=TestUniv,ou=MyOU,dc=sri,dc=com"
    $x.Put("groupType", "-2147483640")
    $x.setInfo()
    write-Output "End!"

    Note:
    1. The above script will convert the TestUniv distribution-type group to "universal security group"

    Let me know if you got any more queries.

    Cheers
    Aravind

    Comment

    Working...
    X