title: Remove disabled member from distribution group for Exchange 2010
body: <p>Exemployee left the company quite a while back and was never removed from the list of allowed senders on this particular group.
  How can I remove disabled member from distribution group for Exchange 2010? BTW I have got 242 Distribution groups objects.</p>
  
  <p>So far I tried :</p>
  
  <p>Firstly , I just want to fetch disabled users  list of <strong>Acceptmessagesonlyfrom and AcceptMessagesOnlyFromSendersOrMembers and AcceptMessagesOnlyFromDLMembers</strong> within 242 distribution groups via for loop </p>
  
  <p>then , I want to remove all of them</p>
  
  <pre><code>(get-mailbox "user logon").acceptmessagesonlyfrom |% { $_.name} | add-content  "c:/output/"
  (get-mailbox "user logon").acceptmessagesonlyfromdlmembers |% { $_.name} | add-content  "c:/output/"
  </code></pre>