Convert mail enabled security group to security group

To convert a mail-enabled security group to a regular security group in Active Directory, you can use the following steps:

Method 1: Using the Active Directory Users and Computers snap-in

  1. Open the Active Directory Users and Computers snap-in.
  2. Navigate to the container where the mail-enabled security group is located.
  3. Right-click on the mail-enabled security group and select "Properties".
  4. In the "Group" properties window, uncheck the "Mail-enabled" checkbox.
  5. Click "OK" to save the changes.

Method 2: Using the PowerShell cmdlet

  1. Open PowerShell as an administrator.
  2. Run the following command to get the distinguished name of the mail-enabled security group:
    Get-ADGroup -Filter {GroupCategory -eq "Security" -and MailEnabled -eq $true} -Recursive | Select-Object -ExpandProperty DistinguishedName

    This will return the distinguished name of the mail-enabled security group.

  3. Run the following command to convert the mail-enabled security group to a regular security group:
    Set-ADGroup -Identity <DistinguishedName> -MailEnabled $false

    Replace <DistinguishedName> with the distinguished name of the mail-enabled security group returned in step 2.

Method 3: Using the ADSI Edit tool

  1. Open the ADSI Edit tool.
  2. Connect to the domain controller where the mail-enabled security group is located.
  3. Navigate to the container where the mail-enabled security group is located.
  4. Right-click on the mail-enabled security group and select "Properties".
  5. In the "Attribute Editor" window, find the "mailEnabled" attribute and set its value to "FALSE".
  6. Click "OK" to save the changes.

After converting the mail-enabled security group to a regular security group, you can no longer use it as a recipient for email messages. However, you can still use it as a security group for other purposes, such as assigning permissions or configuring access to resources.