Advertisements

Category: Exchange 2019 PowerShell

Here is a quick tip on creating a mailbox with PowerShell in Exchange 2019, it is a simple command that will prompt you for the password and once done you will have a new user. There are more options you can set with the command but we will just create a simple user in this […]

Advertisements
Read more

In Exchange 2019 like other versions you can export your SSL certificate to import to another server, we first need to get the thumbprint of the SSL certificate that we want to export, to do this you can run the following command: Get-ExchangeCertificate In this example we are using the first certificate shown above, to […]

Read more

In Exchange 2019, you can generate a new CSR and then import the signed certificate from your registrar like Digicert or RapidSSL or Godaddy etc. To generate a CSR in Exchange 2019, you can run the following command from the Exchange Management Shell (EMS): $cert = New-ExchangeCertificate -GenerateRequest -SubjectName “C=ZA,o=thexchangelab,cn=thexchangelabcert” -DomainName “thexchangelab.com” -PrivateKeyExportable $true Once […]

Read more

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 above, I did not include the […]

Read more

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 using the PS1 script, to do so you need to navigate the scripts […]

Read more

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 you can run the following command: Get-MoveRequest | Get-MoveRequestStatistics As you […]

Read more

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 create a database and log directory […]

Read more

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 easy, to firstly check if the Admin […]

Read more

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 the mailbox you can run the following command: Get-Mailbox As we […]

Read more

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 you but in my Lab I only […]

Read more