Get-TransportAgent
Use the Get-TransportAgent cmdlet to view the configuration of a transport agent.
Disable-TransportAgent “Transport Rule Agent”
Use the Disable-TransportAgent cmdlet to disable a transport agent.
Get-queue -Filter *
Use the Get-Queue cmdlet to view configuration information for queues on Mailbox servers or Edge Transport servers.
Get-TransportServer | Get-Queue
Get-TransportServer | Get-Queue | Get-Message
Get-Recipient “Audain” | new-moveRequest -Targetdatabase “databasename” | ft -AutoSize -Wrap
Use the Get-Recipient cmdlet to view existing recipient objects in your organization.
Get-mailbox -database databasename
Use the Get-Mailbox cmdlet to view mailbox objects and attributes, populate property pages, or supply mailbox information to other tasks.
Get-Mailbox | Sort database, name | Ft name, database
Get-Mailboxstatistics -database databasename
Use the Get-MailboxStatistics cmdlet to obtain information about a mailbox, such as the size of the mailbox, the number of messages it contains, and the last time it was accessed
Get-MoveRequeststatistics -MoveRequestQueue “databasename”
Get-MailboxDatabaseCopyStatus | fl name, contentindexstate
Use the Get-MailboxDatabaseCopyStatus cmdlet to view health and status information about one or more mailbox database copies.
Get-Message
Use the Get-Message cmdlet to view the details of one or more messages in queues on Mailbox servers or Edge Transport servers.
Get-inboxRule -Mailbox “audain”
Use the Get-InboxRule cmdlet to view Inbox rule properties.
Get-MessageTrackinglog -eventId Receive | Export c\temp\defer.csv
Use the Get-MessageTrackingLog cmdlet to search for message delivery information stored in the message tracking log.
Get-MessageTrackinglog -start “02/15/2019 06:00:00” -end “02/16/2019 17:00:00” -Sender “[email protected]”
Set-MailboxJunkEmailCOnfiguration “audain” -ContactsTrusted $false
Use the Set-MailboxJunkEmailConfiguration cmdlet to configure the junk email settings on mailboxes.
Get-MailboxjunkEmailCOnfiguration “audain”
Use the Get-MailboxJunkEmailConfiguration cmdlet to view the junk email settings on mailboxes.
Search-MessageTrackingReport -Identity “audain” -Sender “[email protected]” -BypassDelegateChecking -DoNotResolve
Use the Search-MessageTrackingReport cmdlet to find the unique message tracking report based on the search criteria provided. You can then pass this message tracking report ID to the Get-MessageTrackingReport cmdlet to get full message tracking information
Add-MailboxPermission -Identity “audain” -User ‘audain’ -AccessRight FullAccess -InheritanceType All -Automapping $false
Use the Add-MailboxPermission cmdlet to add permissions to a mailbox.
Connect-Mailbox -Database “databasename” -Identity “identityname” -user “username”
Use the Connect-Mailbox cmdlet to connect disconnected mailboxes to existing user accounts that don’t already have mailboxes.