Advertisements
Everything-PowerShell

Everything-PowerShell

I have a strange problem in my lab where my main account is part of the org admin group however I cannot run half the commands, I thought I would reset everything with the commands below but have not seen any change. Still cannot do much. However in my Exchange 2016 lab, it worked just […]

Advertisements
Read more

Here is a quick tip for checking the last backup on an Exchange database using the Exchange Management Shell (EMS): Get-MailboxDatabase -Status | FT name, Last* Simple enough and there you have the information. Hope it helps.

Read more

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 above […]

Read more

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 check the DAG status? Get-mailboxdatabasecopystatus * To […]

Read more

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” New-MailboxExportRequest -Mailbox User1 -IncludeFolders “#Calendar#” -FilePath \Ex2019\pst\user1Calendar.pst If you go to […]

Read more

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 a healthy state once complete.

Read more

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 “$($mailbox):\calendar” | fl Identity,AccessRights,FolderName } There you have the output, I only have 3 accounts […]

Read more

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 one: and now for the Exchange 2016 one: If there is […]

Read more

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 copy** To remove a mailbox database copy, you can run the […]

Read more

On one of my client’s server running Windows Server 2012 R2, when you launched PowerShell it would immediately crash with the error: and this would create windows events non-stop on the server as follows: At first you think you have the famous PowerShell Virus (Poweliks) but after downloading the Symantec tool and running it, all […]

Read more