MICROSOFT Exchange



MICROSOFT EXCHANGE TIPS

   

HOW TO IMPORT PST TO MAILBOX

New-MailboxImportRequest -mailbox email.address@domain.cz -FilePath PST_File_PathaccountName.pst -TargetRootFolder /

CHECK RUNNING IMPORT PROCESS

Get-MailboxImportRequest -Status InProgress | Get-MailboxImportRequestStatistics -IncludeReport

CHECK COMPLETED IMPORT PROCESS

Get-MailboxImportRequest -Status Completed | Get-MailboxImportRequestStatistics -IncludeReport

HOW TO CREATE MAILBOX

Enable-Mailbox accountName@domain.cz -Database MailboxDatabase01

MOVE STORE AND LOGS

Move-Databasepath "DatabaseName" –EdbFilepath "C:NewlocationDBname.edb" –LogFolderpath "C:Newlocation"

MOVE USER MAILBOX

Get-Mailbox -Database "CIS-users" | New-MoveRequest -TargetDatabase "cis-other"

OR ONLY USER

Get-Mailbox "p.mares" | New-MoveRequest -TargetDatabase CIS-itnoncbs5

CHECK STATUS

Get-MoveRequestStatistics -MoveRequestQueue "CIS-users" | ft displayname,percentcomplete,statusdetail,totalmailboxsize

CLENUP AFTER MOVE

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest

ADD DOMAIN TO WHITELIST

Set-ContentFilterConfig -BypassedSenderDomains @{Add="contoso.com","contoso2.com"}

TURN ON / OFF SPAM FILTER

Set-SenderFilterConfig -Enabled $true
Set-SenderFilterConfig -Enabled $false

UPDATE GLOBAL ADDRESS LIST

Update-OfflineAddressBook "Default Offline Address Book"
Update-GlobalAddressList "Default Global Address List"

HOW TO EXPORT EMAILS TRACKING LOG

To screen
Get-MessageTrackingLog -Server SERVER-NAME -Start "03/13/2018 09:00:00" -End "12/31/2018 17:00:00" -Sender "EMAIL-ADDRESS"

To File
Get-MessageTrackingLog -Server SERVER-NAME -Start "03/13/2018 09:00:00" -End "12/31/2018 17:00:00" -Sender "EMAIL-ADDRESS" | Out-File c:xxx.txt

To File with TimeStamp
Get-MessageTrackingLog -Server SERVER-NAME -Start "03/13/2018 09:00:00" -End "12/31/2018 17:00:00" -Sender "EMAIL-ADDRESS" | FT Recipients, TimeStamp, MessageSubject | Out-File c:xxx.txt

GET ALL MESSAGES FROM DOMAIN “test.com”

Get-Message -Filter {FromAddress -like “*@test.com”}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.