Office 365 Bulk Licensing
Recently I was asked to look into migrating some on-premise Exchange 2010 archives to Office 365. In order to do so you must first license each user on Office 365 in order to migrate their archive. I...
View ArticleWeekly Exchange PowerShell Tip: Tracking Logs
Retrieve Message Tracking logs, sort by TotalBytes and save to txt file: Get-MessageTrackingLog -EventId SEND -Start "9/1/2011 06:00:00" -End "9/1/2011 20:00:00" -resultsize unlimited |...
View ArticleWeekly Exchange PowerShell Tip: Whitespace in DB's
Get whitespace in DB's:2010: Get-MailboxDatabase -Status | Select Servername, Name, AvailableNewMailboxSpace 2007: Get-MailboxServer | Get-MailboxDatabase | Select Server, StorageGroupName, Name,...
View ArticleWeekly Exchange PowerShell Tip: Retrieve Send-As Permissions
To determine who has send-as permissions on a mailbox but isn't the owner of that mailbox you can use this command: Get-Mailbox -Identity "ltemple" | Get-ADPermission | where { ($_.ExtendedRights...
View ArticleWeekly Exchange PowerShell Tip: Determine Moving Mailbox Statistics
Get Mailbox Move Statistics: Get-MoveRequest | Get-MoveRequestStatistics | ft displayname,*stat*,perc*,totalmailboxsize Only In Progress: Get-MoveRequest –MoveStatus InProgress |...
View ArticleWeekly Exchange PowerShell Tip: Empty Dumpster of User
Sometimes it is useful to empty the dumpster of a user before moving their mailbox if they have cleaned it up and mailbox retention policy hasn't reached the limit to purge the mailbox of deleted...
View ArticleWeekly Exchange PowerShell Tip: Working with Message Tracking
The message tracking tool is very helpful however if you need to work with the data it provides the default interface can be difficult. To get around this you can dump the results to a CSV with these...
View ArticleWeekly Exchange PowerShell Tip: Exporting SMTP Addresses
To get a list of SMTP addresses and export to CSV: Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses...
View ArticleWeekly Exchange PowerShell Tip: List ActiveSync Devices
To get a list of ActiveSync Devices: 2010: Get-ActiveSyncDevice -ResultSize Unlimited | Select-Object UserDisplayName, Name, DeviceUserAgent | Export-Csv C:\Temp\ActiveSyncDevices.csv Exch2007:...
View ArticleLessons Learned: Bug with Windows DNS Client
Last week I encountered an issue with what initially appeared to be a problem with DNS scavenging, but after hours of troubleshooting and research I was able to determine that it was actually a known...
View ArticleWeekly Exchange PowerShell Tip: Export Mailbox folder sizes
To export a users mailbox folder sizes to a text file use the following command: Get-Mailbox -Identity testmailbox | Get-MailboxFolderStatistics | Select Identity,FolderPath,FolderSize,ItemsInFolder |...
View ArticleWeekly Exchange PowerShell Tip: Export UPN of All Users With an Archive
Export UPN of all users with an archive: Get-Mailbox -Archive | Select-Object UserPrincipalName | Export-Csv -Path C:\Temp\UPNUSERLIST.csv
View ArticleWeekly Exchange PowerShell Tip: Mailbox Sizes
To get a formatted List with Mailbox Size in Megabytes (MB) to CSV File: Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName,{$_.TotalItemSize.Value.ToMB()} | export-csv -path...
View ArticleWeekly Exchange PowerShell Tip: Get List of SMTP Addresses and export to CSV
To get a List of SMTP Addresses and export them to CSV: Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses...
View ArticleWeekly Exchange PowerShell Tip: List Unified Messaging Extensions
To get all the users Unified Messaging Extensions: Get-UMMailbox |ft name,extensions,UMDialPlan,UMMailboxPolicy
View ArticleWeekly Exchange PowerShell Tip: Granting Public Folder Rights
Grant Rights to a user for a public folder and all sub-folders: Get-PublicFolder –Identity “\IT” –Recurse | Add-PublicFolderClientPermission –User pponzeka –AccessRights PublishingEditor
View ArticleWeekly Exchange PowerShell Tip: Find Users Who Have Sent or Received Email...
See if anyone has sent or received email from a specific domain: Get-MessageTrackingLog -resultsize unlimited |where-object {$_.Recipients -like “*@microsoft.com,*@yahoo.com,*@gmail.com” -AND...
View ArticleWeekly Exchange PowerShell Tip: Batch Migrate Archives
Batch move mailbox archives from text file: $Mailboxes = Get-Content .\TextFile.txt For ($Start = 0; $Start -lt $Mailboxes.length; $Start++) {New-MoveRequest –Identity `$Mailboxes[$Start] -ArchiveOnly...
View ArticleWeekly Exchange PowerShell Tip: Remove Messages from Queue with Specific Subject
Remove messages from queue with specific subject: Remove-Message -Filter {Subject -eq "ENTERSUBJECT HERE"} -WithNDR $false
View ArticleWeekly Exchange PowerShell Tip: Export Users Contacts to PST
Export User's Contacts Folder: New-MailboxExportRequest -Mailbox user1 -IncludeFolders “#Contacts#” -ExcludeDumpster -filepath \\server\share\user1.pst
View Article