
Exchange 2016 PowerShell

Exchange 2016:- Remove mailbox database fails.
Ever had it where you want to remove a database and it just doesn't work? Well this happened this morning. I got a weird error saying that the database is in a backup status? Well it wasn't but here is the error: This is a lab so no backups are running, to fix the...

Exchange 2019:- Resume mailbox database copy
When you do maintenance on an Exchange server, you would expect everything to be fine after a reboot? Correct? Well in some cases that does not happen. For example, one of my Database availability Groups (DAG) had the passive copy all in a Suspended state. How do you...

Exchange 2019:- Export Calendar to PST
Quick tip when exporting certain folders to a PST file in Exchange. Ensure that RBAC is setup for the Mailbox Import/export to work.Ensure your share is setup. Here is the command to export, just like a normal PST export but you including folders"...

Exchange 2010 and higher:- Fix a DAG’s ContentIndexState that failed
Quick tip: If you have a DAG with a ContentIndexState showing failed, you can fix it with a simple command in the Exchange Management Shell (EMS): Update-MailboxDatabaseCopy -Identity "DAGNAME\store" -CatalogOnly This will then start a re-seed and it should return to...

Exchange 2019:- Find all mailboxes access rights
Ever wanted to quickly find all mailboxes and view the mailbox rights for each of those? Now you can with a PowerShell command that will show it to you. Here is the command below: ForEach($mailbox in (Get-Mailbox)) { Get-MailboxFolderPermission -Identity...

Exchange 2010 and higher:- Test-ReplicationHealth
Here is a quick tip on how you can check the health of your server that is part of a database availability group (DAG). The command to run is as follows using the Exchange Management Shell (EMS): Test-ReplicationHealth -Identity <ServerName> Below is the 2010...

Exchange 2010 and higher:- Remove a database copy and database using PowerShell
Removing an Exchange Database copy or a database should not be hardwork, especially when it can be done with the Exchange Management Shell. **Take note, if you have circular logging enabled, you need to firstly disable it before you can remove an Exchange database...

Exchange 2019:- Connect to your server remotely with PowerShell
With the attack on RDP getting more and more each day, many Admins are forced to use remote tools to get onto servers. Managing your exchange 2019 server or legacy servers does not require you to login to the desktop, you can use remote PowerShell and because the...

Windows PowerShell:- Adding windows defender exclusions
If you are running Exchange, you are aware that you need to exclude certain folders, processes etc. from scanning for Exchange to run optimally. Now if you have System Center Configuration Manager (SCCM) in your environment, adding exclusions is easy and you can paste...

Exchange 2016:- Get DB size with a simple command
In Exchange, mailbox moves and cleanup happen all the time, especially when you upgrading to newer versions etc. Now when you move mailboxes and you not using a 3rd party app like Odin that sits as an extra layer, you cannot see the store size from the web console. In...