logo
search
Others

How to Hide or Disable Mail for an On-Premises Security Group

John WilsonJohn Wilson Oct 19, 2026 868 views

Question details

The user needs to hide a mail-enabled security group from the Global Address List (GAL) or disable its mail attributes without a dedicated on-premises Exchange server.

How to Hide or Disable Mail for an On-Premises Security Group
Product
Active Directory / Exchange Server
Device & OS
not provided
Scenario
Managing a synchronized mail-enabled security group where the msExchHideFromAddressLists attribute is unavailable and Exchange Online cannot directly edit the on-premises source.
Observed behavior
Exchange Online prevents modifying the synchronized group, and standard cmdlets like Disable-DistributionGroup fail because they require an active on-premises Exchange server environment.
Before you start

Ensure you have Domain Admin or Enterprise Admin privileges in your on-premises Active Directory and verify if your AD schema has been extended for Exchange.

Solution 1Recommended

Modify the Group Attribute via ADSI Edit

Use the ADSI Edit tool to manually update the hidden attribute in Active Directory when the Exchange Management Console is unavailable.

If you do not have an active on-premises Exchange server but your Active Directory schema was previously extended for Exchange, you can manually modify the attributes using ADSI Edit.

Be very careful when using ADSI Edit, as modifying the wrong attributes can cause severe Active Directory issues.

1
Open ADSI Edit

Press Windows + R, type 'adsiedit.msc', and press Enter to open the ADSI Edit tool on your domain controller.

2
Connect to the Default Naming Context

Right-click 'ADSI Edit' in the left pane, select 'Connect to', leave the default settings to connect to the 'Default naming context', and click OK.

3
Locate the Security Group

Navigate through the OU structure to find the mail-enabled security group you want to hide.

4
Edit the msExchHideFromAddressLists Attribute

Right-click the group, select 'Properties', scroll down to locate 'msExchHideFromAddressLists', click 'Edit', and set the value to 'True'.

5
Force Directory Synchronization

Open PowerShell on your Azure AD Connect server and run 'Start-ADSyncSyncCycle -PolicyType Delta' to push the changes to Microsoft 365.

Modify the Group Attribute via ADSI Edit
Attribute Missing?: If the msExchHideFromAddressLists attribute is not visible, your Active Directory schema may not be fully extended for Exchange.
Free Microsoft Office alternative

Looking for a reliable Office suite? Try WPS Office

While resolving Active Directory and Exchange Server configurations requires specialized IT tools, your everyday document management doesn't have to be complicated. WPS Office is a powerful, lightweight, and cost-effective alternative to Microsoft Office, perfect for IT professionals and business users alike.

  1. 1. Visit the WPS Website: Go to the official WPS Office website to access the free download.
  2. 2. Download the Installer: Click the 'Free Download' button to get the lightweight installation package for your operating system.
  3. 3. Install and Work: Follow the on-screen instructions to install WPS Office and instantly open your existing Microsoft Office documents.
Fully compatible with Microsoft Office file formats (.docx, .xlsx, .pptx) for seamless document sharing.Ideal for IT teams to easily draft, edit, and share Active Directory policies and technical documentation.Lightweight installation ensures fast performance on any PC without heavy resource consumption.Familiar tabbed interface allows for an immediate transition with zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I hide a synchronized on-premises group directly in Exchange Online?

When an on-premises Active Directory is synchronized with Microsoft 365 using Azure AD Connect, the on-premises directory remains the source of authority. Exchange Online blocks direct edits to synchronized objects to prevent data conflicts during the next sync cycle.

What should I do if the msExchHideFromAddressLists attribute is missing in ADSI Edit?

If the attribute is missing, it usually means your Active Directory schema has not been extended to include Exchange attributes. You may need to run the Exchange Server setup with the /PrepareSchema switch to add these attributes to your AD environment.

How long does it take for a hidden group to disappear from the Global Address List (GAL)?

After successfully modifying the attribute in your on-premises AD and forcing a directory sync to Microsoft 365, it can take up to 24 hours for the GAL to update across all Outlook clients, including the Offline Address Book (OAB).