• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

danblee.com

Tutorials & Knowledge Base Articles for System Administrators who wear many, many hats.

  • Home
  • About
  • Ask Me
  • DBLHost.com

Exchange: Export a list of all public facing distribution groups

February 6, 2019 by Dan B. Lee Leave a Comment

Public facing isn’t the right term here. It simply means that the authentication requirement to send mail to the distro has been disabled to give anyone anywhere the ability to send an email to it. That makes it publicly accessible. If you want a list of all of the distribution groups that have the authentication requirement disabled you can use this little one-liner.

Open Exchange Management Shell as an Administrator and type the following:

1
2
3
 
Get-DistributionGroup | ? {$_.RequireSenderAuthenticationEnabled -eq $false} | select samaccountname, grouptype, emailaddress | Export-csv c:\temp\PublicDistros.csv
 

You can change the last bit to match the directory you want to put your .csv file in.

Hope this helps. Cheers!

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

Filed Under: Exchange 2003, Exchange 2010, Exchange 2013, Microsoft Windows, PowerShell Tagged With: Exchange, Exports, Microsoft Exchange Server, PowerShell, Scripting, scripts

Primary Sidebar

Categories

  • Active Directory
    • Group Policy
  • Adobe Photoshop
  • Browsers
    • Chrome
  • Cloud Based Technology
    • Citrix XenApp
  • ConnectWise
    • LabTech
  • Dell
  • Internet Service Providers (ISPs)
  • iPhone
  • Linux
    • CentOS
    • OpenVPN
    • SaltStack
    • Ubuntu
  • Microsoft Office
    • Lync
    • Microsoft Excel
    • Microsoft Outlook
    • Microsoft Word
  • Microsoft Windows
    • Active Directory
    • PowerShell
    • Windows 7
    • Windows 8 Preview & Release
  • Networks
  • News
  • Off Topic
  • Office 365
  • Peripherals
    • Monitors
  • Printers
    • Local Printers
    • Network Printers
  • Programming
    • Python
  • Riverbed
  • Security
  • Sharepoint
  • Social Media
  • Splunk
  • Storage
  • Switching & Routing
    • Cisco
    • Fortinet
  • Technology Culture
    • Opinion
  • Uncategorized
  • Virtualization
    • VEEAM
    • VMware
  • WAMP
  • Web Hosting
    • WHMCS
  • Website Design
  • Windows Server
    • Exchange 2003
    • Exchange 2010
    • Exchange 2013
    • Microsoft SQL
    • Windows Server 2003
    • Windows Server 2008 R2
    • Windows Server 2012
  • WordPress

Footer

Recent Activity

  • VSS Volume Shadow Copy Service - Intro - on Diskshadow, VSSAdmin’s best friend
  • Confluence: Wiki on Diskshadow, VSSAdmin’s best friend
  • Migrating VEEAM Backup Data — danblee.com on Using ROBOCOPY switches for faster, more reliable data moves
  • How to Handle Email Spam From Yourself - TrendsEvo on Anti Spoofing for Domains in Exchange 2016
  • How To Handle Email Spam From Yourself | Lifehacker Australia on Anti Spoofing for Domains in Exchange 2016

Dan Lee

Dan B. Lee works at SyApps, LLC., a Managed Hosting Solutions Firm, as a Senior Network Engineer. Dan has a decade of IT experience and specializes in a number of different disciplines including Virtualization, Web Site Hosting and Design, Network Security, Data Center Architecture, Local and Remote Server Hosting, and Backup & DRS Solutions. Read More…

Links

  • Home
  • About Dan B. Lee
  • Ask Me
  • Privacy Policy

Copyright © 2019 · Genesis Sample Theme on Genesis Framework · WordPress · Log in