PowerShell: Email me when Disk Space is running low on my Windows Servers (w/ SQL Server Integration)

Have you ever ran into a situation where your disk space on your Windows Server were running low and you had to constantly remote into the server to check the disk space? Now, imagine if you had to do this for 10-100 servers! holy crap. With this PowerShell script you can get an email notification when your disk space is […]

Read more

How to Expand the Recipient Scope in Exchange 2010/2013

You may find yourself in a situation where you have Exchange in a multi-domain environment, that when your running commands like get-mailbox it’s not displaying mailboxes across all the domains. You can sort that out by simply expanding your recipient scope, you can do that by running the below Open Exchange Management Console with Admin rights Run the command below […]

Read more

Delete all Calendar events from a mailbox

Connect to O365 using powershell first   Open PowerShell or EMS If this is an O365 mailbox, you will need to connect to the O365 environment Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential  $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection  Import-PSSession $s    Then run this command in powershell: Search-Mailbox -identity “UsersMailbox” -SearchQuery kind:meetings -DeleteContent   

Read more

How to copy old user’s mailbox to another user’s mailbox on Office 365 and Exchange Server using PowerShell

You will come across the issue with leavers mailboxes needing to be transferred to another users mailbox. If you are looking after on-site exchange, then the process is slightly shorter as you don’t need to connect to the remote Powershell.   To connect to O365 first run this PS command: $Cred = Get-Credential  $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic […]

Read more

Bulk import email aliases to Office 365 using Powershell

If you need to add email aliases to O365 accts in bulk use the following (EMS) powershell command with the CSV file formatted this way:   Name ProxyAddresses user1@domainold.com user1@domainnew.com   Run this in EMS: Import-Csv C:\email-aliases.csv | ForEach-Object{ $name = $_.Name }  Import-Csv C:\email-aliases.csv | ForEach-Object{ $proxy = $_.ProxyAddresses -split ‘;’}  Set-RemoteMailbox -Identity $name -EmailAddresses @{add= $proxy}    OR   Get the display name and email […]

Read more

Understanding In-Place Hold and Litigation Hold in Exchange

Litigation Hold was first introduced in Exchange 2010 and is designed to preserve all items in a mailbox indefinitely for the purposes of e-discovery. Litigation Hold can be applied to mailboxes or distribution groups. When a user’s mailbox is put on Litigation Hold, they are still able to delete items, but Exchange retains the deleted items indefinitely with immutability. For […]

Read more

Virtualizing Microsoft Exchange Tips and Tricks

Are you looking at reducing hardware cost and utilizing your virtualization infrastructure to run your Exchange servers? Are you still on edge about virtualizing a mailbox role or unified messaging role? Today I’ll be sharing some tips for virtualizing Microsoft Exchange that I’ve picked up over the years – hopefully some of them may help ease your Exchange anxiety. Virtualization and Exchange are […]

Read more

How to Understand an Exchange Non Delivery Report (NDR)

What is a Non-Delivery Report (NDR)? If you take a look at the NDR below, you can see a sample nondelivery report.  This nondelivery report contains all of the usual information such as the date and time that the message was sent, and the intended recipient.  If you take a look at the last line of the nondelivery report though, […]

Read more

Recovering Deleted Email with New Exchange Online Cmdlets

Exchange Makes It Easy for Users to Fix Deletion Mistakes Exchange has used a two-step item deletion process for nearly 20 years. When someone deletes an item from a mailbox, it moves into the Deleted Items folder. Later, when the user empties the Deleted Items folder, or the Managed Folder Assistant empties the folder under the instruction of a retention […]

Read more

Enable IMAP on all Exchange 2013/2016 Servers

IMAP and POP3 are disabled on Exchange Server 2013 and 2016 servers by default. Chances are if you need to enable it, you’ll need to enable it on all your servers at once. Fortunately, PowerShell makes this easy! Run Exchange Management Shell as administrator on an Exchange server and execute the following: PowerShell Script to enable IMAP on all servers […]

Read more
1 2 3 5