Advertisements

Category: Exchange 2019 PowerShell

Quick tip: In your organization, you get a call from a departmental managers secretary to advise he/she forget to set there Out of Office and have requested you to do so. To set it, quickly launch the Exchange Management Shell (EMS) and run the following command: Set-MailboxAutoReplyConfiguration -Identity User1 -AutoReplyState Enabled -InternalMessage “Playing golf with […]

Advertisements
Read more

Quick tip: If you want to change your Deleted Item Retention on your mailbox database, you can do so running a simple command in PowerShell using the Exchange Management Shell: Set-MailboxDatabase -Identity “Mailbox Database Name” -DeletedItemRetention 30 If you wanted to change a single mailbox, then you can run the following command in PowerShell: Set-Mailbox […]

Read more

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 Exchange you can run the […]

Read more

As an IT Admin or Exchange Admin, you might have come across the question “When were the mailboxes created”. In this quick example, we will look at the script you can run to check all users in the Organization or just an individual mailbox. To check all users in Exchange, you can run the following […]

Read more

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 requirements. Never-the-less, you can install the Exchange Management […]

Read more

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: null $Users = Get-Content “C:\Users\User1\Desktop\doc.csv” foreach ($User in ($Users)) {New-MailboxExportRequest -Mailbox $User -ContentFilter […]

Read more

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 servers and databases in the environment. Below is the next example. Get-MailboxDatabaseCopyStatus -Identity dag1* The above […]

Read more

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 -AcceptLargeDataLoss Give it a few minutes to update and resume the failed […]

Read more

In the last part, we will look at moving the Discovery Search Mailbox from Exchange 2016 to Exchange 2019, to find the mailbox in your environment, you can run the following command: Get-Mailbox discovery* Now we can move it to the Exchange 2019 Server running a similar command to the other ones: Get-Mailbox discovery* | […]

Read more

In the first 2 parts we looked at moving the Arbitration mailboxes and the health mailboxes, now we will look at moving the AuditLog mailbox. Launch the Exchange Management Shell (EMS) and run the following command: Get-Mailbox -AuditLog On our server, we do have an AuditLog mailbox and we need to move it to Server […]

Read more