On one of our production servers, I started to get an error while running our scripts. Stripping down the code, I receive the error when running this command from the PowerShell prompt:
Get-WmiObject -Class win32_volume
The result is this:
Get-WmiObject :
At line:1 char:14
+ Get-WmiObject <<<< -Class win32_volume
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
What's noticable to me is that there's no description of the error on the first line of the result. This script has worked in the past, and continues to work on our other servers.
I'm running this as an administrator on the server, and the PowerShell session is in administrator mode. Any suggestions about what to do to solve this?
Thanks.