Get-Inboxrule – easy way to get rules from mailboxes
An easy command for checking if there are any automatic rules on an Exchange Mailbox is to use...
Usefull PowerShell commands
PowerShell is a powerfull tool when administrating Microsoft products and personally i like using Windows PowerShell ISE that...
How to clear move-requests in Exchange 2007/2010
Run this command in powershell to clear completed move-requests Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest
Exporting distribution list membership to Excel
Easy one-liner for exporting members of a distribution list: Get-DistributionGroupMember -identity "company-dl" | Export-Csv C:\MyFile.Csv you can also use “-not” that gives you...
Exchange 2007/2010 – Hide users from global adress list (GAL)
Hide all users: 1, Connect PowerShell to Exchange. 2, Run the following command: Get-Mailbox Alias | Set-Mailbox -HiddenFromAddressListsEnabled...
List users and size of mailbox in Exchange 2007 and 2010 with Powershell
Get-Mailbox | Get-MailboxStatistics | select-object DisplayName, {$_.TotalItemSize.Value.ToMB()}
Find emails with Powershell commandlets
Get-MessageTrackingLog -start “12/18/2011 08:00” -Sender user@domain.com | Format-List sender, Recipients, timestamp, MessageSubject Get-MessageTrackingLog -MessageSubject Testsubject
Import PST file to exchange mailbox from Powershell
New-MailboxImportRequest –Mailbox bruker –FilePath \servermappenavn.pst
Get SMTP Adresses from Exchange 2007/2010 With Powershell
Get-Mailbox | select -expand EmailAddresses | %{$_.SmtpAddress}