Gestern habe ich ja schon mal einige Code Schnipsel zum Thema PowerShell und Exchange Server gepostet…
Hier folgen noch einige weitere.

Hier ein Beispiel wie Disclaimer erstellt werden kann. In Deutschland ja bei gewerblicher Nutzung erforderlich
$Rollenname = "ExternalDisclaimer"
$Rollenkommentar = "Disclaimer für alle ausgehenden Mails"
$DisclaimerInhalt = "-------------------------------------------------------------------
Joerg Hochwald
About Collaboration, Technology and more

-------------------------------------------------------------------"
$voraussetzung = Get-TransportRulePredicate FromScope
$voraussetzung.Scope = "InOrganization"
$voraussetzung2 = Get-TransportRulePredicate SentToScope
$voraussetzung2.Scope = "NotInOrganization"
$Ausnahme = Get-TransportRulePredicate SclOver
$Ausnahme.SclValue = 9
$Aktion = Get-TransportRuleAction ApplyDisclaimer
$Aktion.Text = $DisclaimerInhalt
$Aktion.Font = "Arial"
$Aktion.FontSize = "Smaller"
$Aktion.FontColor = "gray"
$Aktion.Separator = "WithoutSeparator"
$Aktion.FallbackAction = "Wrap"
New-TransportRule -Name $Rollenname -comment $Rollenkommentar -Condition @($voraussetzung, $voraussetzung2) -Exception @($Ausnahme) -Action @($Aktion)

Quelle: TechNet

Gleiches für Exchange 2010. Etwas anders, aber viel einfacher ;-)
New-TransportRule -Name ExternalDisclaimer -Enabled $true -SentToScope 'NotInOrganization' -ApplyHtmlDisclaimerLocation 'Append' -ApplyHtmlDisclaimerText "<h3>Joerg Hochwald</h3><p>About Collaboration, Technology and more</p><p>More Disclaimer text goes here... use HTML tags to format ist!</p>" -ApplyHtmlDisclaimerFallbackAction Wrap

Informationen ActiveSync Geräte anzeigen
get-activesyncdeviceStatistics -mailbox jhochwald@mydoamin.local

Das ganze sieht dann so aus (Auszug):
FirstSyncTime : 27.03.2010 23:21:06
LastPolicyUpdateTime : 27.03.2010 23:21:07
LastSyncAttemptTime : 07.04.2010 05:49:15
LastSuccessSync : 07.04.2010 05:49:15
DeviceType : iPhone
DeviceID : Appl832487432K3NR
DeviceUserAgent : Apple-iPhone/705.18

Mailboxen anzeigen die kein Unified Messaging haben
Get-UmMailbox | ForEach { If($_.UmEnabled -Eq $False){$_.Name}}

Mailboxen anzeigen die Unified Messaging haben
Get-UmMailbox | ForEach { If($_.UmEnabled -Eq $True){$_.Name}}

Eine Unified Messaging Telefonliste ausgeben
Get-UmMailbox | Format-Table ServerName,@{e={$_.SamAccountName};Label="User Alias"},@{Expression="Extensions";Label="Telephone numbers"}

Die Microsoft Exchange Blockliste abfragen: Ist 192.168.27.80 blockiert?
Get-IpBlockListProvider | Test-IpBlockListProvider -IpAddress 192.168.27.80

Die Microsoft RBL Anti-Spam Funktionen einschalten
Set-IPBlockListProvidersConfig -Enabled $True -ExternalMailEnabled $True
Add-IPBlockListProvider -Name -LookupDomain -AnyMatch $True

So, dass war es (erst mal) ;-)