Exchange 2019 PowerShell
Exchange 2019:- Running the Management Tools from a Non-Exchange Server
As an Exchange Admin, you might have help desk staff that need to run commands or do things on Exchange but you don't want them logging into the Exchange Servers directly for company policy prevents it. Each case is unique and each business has it's set of...
Exchange 2010:- Export Mailbox using a date range with PowerShell
Exporting mailboxes is great but what if you only wanted information for a certain period as you need it for whatever reason, legal, manager, etc. Well using the Exchange Management Shell (EMS) you can run the following command to export the data: $Users = Get-Content...
Exchange 2010/2013/2016:- Check Mailbox Database Copy status in various ways with PowerShell.
There are many ways in PowerShell to check the mailbox database copy status in Exchange, here are some examples from the Exchange Management Shell (EMS): Blanket check.Per DAG check.Per Server check. Get-MailboxDatabaseCopyStatus * The above command runs across all...
Exchange 2010 and above:- Bulk update move requests with PowerShell
With mailbox moves, you do get the few that fail and instead of updating each one with the -BadItemLimit switch you can do this one liner command to update them all before resuming them, here is the command: Get-MoveRequest | Set-MoveRequest -BadItemLimit 500...
Exchange 2019 – Connect a deleted mailbox or recover it
In this example, we are going to connect/recover a mailbox that we deleted in the previous blog post. As an example, we created a new test user as shown below to connect to a mailbox. To do this you can use PowerShell to create the user or use Active Directory Users...
Exchange 2019 – Delete a mailbox using PowerShell
In Exchange 2019, like other versions like 2016 or 2013, you can delete a mailbox using a single command. To firstly find the list of mailboxes you can run the following command: Get-Mailbox In this example we are going to remove the mailbox called "edward". To remove...
Exchange 2019 – Check the Services with PowerShell
In Exchange, I pretty much do everything with PowerShell. A quick tip if you want to make sure everything is running, service wise, you can do so in Powershell: Get-Service *MSExchange* Just by running a simple command you have a complete overview of what is not...
Exchange 2019 – Enable Circular logging on a Database
In Exchange, whether it is 2013 or higher, you may look at enabling Circular logging on your databases. While this will constantly flush the logs, you cannot run Circular logging and have backups running as they will be inconsistent all the time. To firstly check if...
Exchange 2019 – Remove Ambiguous Address from Transport Queue with PowerShell
In Exchange, you might come across mail stuck in your queue that only show <> and nothing else. This is most likely your journal mail but for some reason it is stuck and does not want to clear from the Transport Queue, you can run the following command to remove...
PowerShell – Setting all offline disks online with single command
In Exchange, if you have created a large number of disks to cater for your DAG or multiple DAG's, setting them online one by one can be a very time consuming job. With PowerShell you can set all the offline disks online and then create your mount points but we will...