Quantcast
Channel: Martin Bauer
Browsing latest articles
Browse All 21 View Live

Weekly 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 Article


Weekly 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 Article

Weekly 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 Article

Weekly Exchange PowerShell Tip: List Unified Messaging Extensions

​To get all the users Unified Messaging Extensions: Get-UMMailbox |ft name,extensions,UMDialPlan,UMMailboxPolicy

View Article

Weekly 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 Article


Weekly 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 Article

Weekly 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 Article

Weekly 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 Article


Weekly 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


Weekly Exchange PowerShell Tip: Bulk Create O365 Mail Contacts

​If you want to bulk create mail contacts in O365, the following powershell cmdlet will pull in a list of users from a CSV and create mail contacts from it:   Import-Csv...

View Article
Browsing latest articles
Browse All 21 View Live