Exchange Management Shell

Convert mailbox to Shared mailbox.

Set-Mailbox info@domain.com -Type shared

Shared mailbox items going to wrong sent folder.

In O365 =, drill: Admin Ctr>Groups>Shared Mailboxes

set-mailbox 'Shared mailbox address' -MessageCopyForSentAsEnabled $True

Find delegates of user mailboxes

Get-CalendarProcessing -identity %USER% | select-object ResourceDelegates

Get list of all users with delegated users

Get-Mailbox | Get-CalendarProcessing | Where {$_.ResourceDelegates –ne β€œβ€} | Select-Object Identity, ResourceDelegates | Format-List

=====================================================================
Find / Retrieve list of Exchange users, output to a file.

 #start
 $FormatEnumerationLimit=-1
 Get-AdUser -Filter * -Properties ProxyAddresses | sort-object samaccountname |ft samaccountname,userprincipalname,@{l="Main e-mail";e={$_.ProxyAddresses | ?{$_ -cmatch 'SMTP'}}},@{l="Other addresses";e={$_.ProxyAddresses | ?{$_ -cmatch 'smtp'}}} -AutoSize -Wrap |Out-String -Width 4096 | out-file C:\Results.txt
 #end

===================================================================== Find Version of Exchange

get-exchangeserver

=====================================================================

Leave a comment