Hier eine kleine Aufstellung nützlicher Exchange Powershell Befehle die ich gerne mal verwende

Kompletten Forest freischalten:

Set-AdServerSettings -ViewEntireForest:$true 

Postfach untersuchen ob eine Servergespeicherte Weiterleitungsregel existiert.

Get-Mailbox kherter | Get-InboxRule | Select-Object mailboxownerid, name, enabled  | fl 

Alle Eigenschaften einer Mailbox abfragen:

Get-Mailbox kherter | fl 

Postfach zur Mailadresse finden:

get-recipient -results unlimited | where {$_.emailaddresses -match "user@domain.com"} | select name,emailaddresses,recipienttype

Getrennte Postfächer aktualisieren:

Get-MailboxDatabase | Clean-MailboxDatabase 

Getrennte Postfächer anzeigen:

Get-MailboxDatabase | Get-MailboxStatistics | Where{ $_.DisconnectDate -ne $null } |fl DisplayName, Database, Identity, DisconnectReason 

Mailboxen anzeigen die ein bestimmtes Attribut haben:

Get-mailbox | where {$_.CustomAttribute6 -eq "SystemTechnics"} | ft FirstName,LastName,RecipientType 

Mailboxen anzeigen, welche kein leeres Attribut haben:

Get-mailbox -ResultSize Unlimited | where {$_.CustomAttribute6 –ne ""} | select name,SamAccountName, PrimarySmtpAddress, WindowsEmailAddress, CustomAttribute6  | export-csv -Delimiter ";" c:\temp\Attribute6.csv 

Send-As Rechte prüfen:

Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like "*Send-As*") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT-AUTORITÄT\SELBST")} |  Format-Table Identity, User

Tracking Log im bestimmten Zeitraum prüfen:

Get-TransportServer EX-*| Get-MessageTrackingLog -Start "01/22/2015 00:00:00" -End "02/18/2015 23:59:00" -ResultSize 425000 | select EventID,Timestamp,Recipients > GesamtMails.csv

Postfächer mit Weiterleitungen identifizieren:

Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, PrimarySMTPAddress, ForwardingAddress, DeliverToMailboxAndForward|fl  

Alle Postfächer einer bestimmt OU in PST-File sichern:

$Export = Get-User -OrganizationalUnit “yourdomain.com/OU/SubOU” -Filter “RecipientType -eq ‘UserMailbox'” | Get-Mailbox ; $Export|%{$_|New-MailboxExportRequest -FilePath c:\temp\$($_.alias).pst}

Postfachgrößen ausgeben lassen:

Get-Mailbox | where { $_.customattribute7 -ne “exempt” } | Get-MailboxStatistics | select displayname, itemcount, TotalItemSize | sort-object totalitemsize -descending | format-table displayname, itemcount, @{expression= {$_.TotalItemSize.value.ToMB()};label=”TotalItemSize(MB)”} -Auto