Well, I can't get this working at all. I can't see any pre-requisite requirement, what's going wrong? I've tried with the full script provided, as well as breaking it down to the most simply possible. Always get the same error:
[PS] C:scriptsps>Get-DatabaseEvent -Identity DAGTest
Get-DatabaseEvent : Value cannot be null.
Parameter name: parameters
At line:1 char:18
+ Get-DatabaseEvent <<<< -Identity DAGTest
+ CategoryInfo : NotSpecified: (:) [Get-DatabaseEvent], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Exchange.Management.Powershell.Support.GetDatabas
eEvent
Exchange 2010 SP1. Would really like to get this working, and learn more about it.
Thanks for the article :)