User Tools

Site Tools


microsoft:exchange:powershell:snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
microsoft:exchange:powershell:snippets [2024/12/10 10:07] – Added "Sort-Object Name" to [Get all mailboxes with a forward set at Exchange Server level]. basmicrosoft:exchange:powershell:snippets [2026/11/24 16:35] (current) – Added "Removing an email address from a mailbox". bas
Line 186: Line 186:
 </code> </code>
 Source: [[http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2010/11/22/Managing-email-addresses-in-exchange-2010.aspx|Shay Levy - Managing email addresses in Exchange 2010]] via [[http://www.mikepfeiffer.net/2010/04/quickly-add-an-email-address-to-an-exchange-mailbox-using-powershell/|Mike Pfeiffer's Blog - Quickly Add an Email Address to an Exchange Mailbox using PowerShell]] \\ Source: [[http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2010/11/22/Managing-email-addresses-in-exchange-2010.aspx|Shay Levy - Managing email addresses in Exchange 2010]] via [[http://www.mikepfeiffer.net/2010/04/quickly-add-an-email-address-to-an-exchange-mailbox-using-powershell/|Mike Pfeiffer's Blog - Quickly Add an Email Address to an Exchange Mailbox using PowerShell]] \\
 +
 +
 +=====Removing an email address from a mailbox=====
 +
 +<code>
 +Set-Mailbox User1 -EmailAddresses @{Remove='TestUser1@domain.com’}
 +</code>
 +
  
 =====Create a Dynamic Distribution group containing all accounts with mailboxes in a specific OU===== =====Create a Dynamic Distribution group containing all accounts with mailboxes in a specific OU=====
microsoft/exchange/powershell/snippets.txt · Last modified: by bas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki