Here are some list of powershell commands that will be useful on our day to day usage. These are assorted but I have highlighted the usage of each commands. Hope they are useful.
1) To export an user mailbox to a .pst file remotely :
New-MailboxExportRequest -Mailbox abc -FilePath \\ex2010a\pst\abc.pst
2) To APPEND users to AcceptMessageOnlyFrom field of a DL. Note : This will append the list of users to the find and it will not replace the existing users.
Set-DistributionGroup -Identity NationalAccountDept -AcceptMessagesOnlyFrom @{add="emp_00","emp_01"}
3) Export list of users who are UM enabled
Get-ummailbox | where {$_.UMenabled -eq $true}
4) Clean emails from user mailboxes from a specific sender
Get-Mailbox -server exch5 -resultsize unlimited | Search-Mailbox -SearchQuery “From:abc@gmail.com” –DeleteContent
1) To export an user mailbox to a .pst file remotely :
New-MailboxExportRequest -Mailbox abc -FilePath \\ex2010a\pst\abc.pst
2) To APPEND users to AcceptMessageOnlyFrom field of a DL. Note : This will append the list of users to the find and it will not replace the existing users.
Set-DistributionGroup -Identity NationalAccountDept -AcceptMessagesOnlyFrom @{add="emp_00","emp_01"}
3) Export list of users who are UM enabled
Get-ummailbox | where {$_.UMenabled -eq $true}
4) Clean emails from user mailboxes from a specific sender
Get-Mailbox -server exch5 -resultsize unlimited | Search-Mailbox -SearchQuery “From:abc@gmail.com” –DeleteContent