
Exchange 2019 PowerShell

Exchange 2019 – Mailbox has a completed move request associated with it
In Exchange, if you try and move a mailbox that h as a completed move request, you will receive the following error: To fix this error, you need to clear the move requests, to do so you can run the following command: Get-MoveRequest | Remove-MoveRequest As you can see...

Exchange 2019 – Install the anti-spam Agent
In Exchange, whether it is 2013,2016 or 2019, you have a list of Transport Agents. To view them you can run the following command: Get-TransportAgent In the scripts folder with the Exchange installation directory you can install the Anti-Spam Agents Transport Agent...

Exchange 2019 – Move mailbox from Exchange 2016 to 2019
Moving mailboxes is a daily task for Exchange Admins. The process is the same as Exchange 2013 or 2016. To move a single user mailbox you can use the following command: New-MoveRequest -Identity edwardvbs -TargetDatabase Store1 To check the status of the mailbox move...

Exchange 2019 – Create an Exchange database using PowerShell
In Exchange it is easy to create a database with the Exchange Admin Center but you can create it very easily with PowerShell. Most Exchange Admins use mount-points to store an Exchange database and logs as this is stored on a SAN and not on the Server itself. To...

Exchange 2019 – Disable Admin Access to the Exchange Admin Center (EAC) with PowerShell
Not only in Exchange 2019 but 2016 and 2013, you can remove access from the Exchange Admin Center so that Administrators cannot access it, some companies only allow PowerShell as they don't want the EAC exposed to the internet etc. None the less, to disable it is very...

Exchange 2019 – Enable mailbox with PowerShell
Quick tip for Enabling a Mailbox for a user already active in Active Directory. Launch the Exchange Management Shell (EMS) and run the following command: Enable-Mailbox -Identity UserName Once it runs you will see the info below the command as shown above, to check...

Exchange 2019 – Create a DAG using PowerShell
In Exchange, creating a DAG using the GUI is very easy, you fill in your DAG name, Witness Server and Witness Directory and optional to enter an IP address, let's look at how to do this using Powershell in Exchange 2019. Exchange should create the witness folder for...

Exchange 2019 – Check a mail-queue that is giving an error with PowerShell
In Exchange, you have the option to view your mail queues using the GUI interface and you can at a quick glance view the error of a specific domain or if something is wrong. With Powershell, you can do the same thing. To firstly get a list of all the queues you run...

Exchange 2019 – Change the URL’s with PowerShell
In one of my previous articles we looked at updating the autodiscover internal URL, today we will update the rest using PowerShell, this includes the following: EWSOABOWAActiveSyncPowerShellECP Here are the list of PowerShell commands that were run to update my lab...

Exchange 2019 – Assign Services to an SSL Certificate
In Exchange 2019, viewing and assigning an SSL certificate services is basically the same as Exchange 2013 and 2016. In this example we will use PowerShell to firstly view the certificates we have and then assign services to that SSL certificate along with setting...