Can anyone tell me what this error means? I've been tasked with taking over our SCOM environment and I've never used this product before.
The PowerShell script failed with below exception
System.Management.Automation.CmdletInvocationException: Exception calling ".ctor" with "3" argument(s): "Input string was not in a correct format."
At line:57 char:33
+ $diskFreePercentage = New-Object <<<< System.Diagnostics.PerformanceCounter("LogicalDisk", "% Free Space", $DeviceID)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
at System.Management.Automation.Parser.PipelineNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList)
at System.Management.Automation.Parser.PipelineNode.Execute(Array input, Pipe outputPipe)
at System.Management.Automation.Parser.AssignmentStatementNode.Execute(Array input, Pipe outputPipe)
at System.Management.Automation.Parser.StatementListNode.Execute(Array input, Pipe outputPipe, ArrayList& resultList)
Script Name: DiskFree
One or more workflows were affected by this.
Workflow name: Microsoft.Exchange2007.DiskFree.MailboxDB.Monitor
Instance name: MDB Disk T:\SG1-DB (MYSERVER.mydomain.com)
Instance ID: {03A62480-38B5-4A4F-258A-25F05553988A}
Management group: GROUP1