Hi Scrippting Guy,
I'm administering a couple of SAP machines. To avoid an Oracle Archiver Stuck I'd written a script AutoArchive.ps1 that checked the free space on the archiving drive and started an archive run once a certain threshold was passed. This script ran successfully for several month (in fact it still does on most of our machines). However, on one particular machine it does not work anymore.
On analyzing I found that "Get-WmiObject win32_logicaldisk" returns the following error:
Get-WmiObject : The type initializer for 'System.Management.MTAHelper' threw an exception.
At line:1 char:14
+ Get-WmiObject <<<< win32_logicaldisk
+ CategoryInfo : NotSpecified: (:) [Get-WmiObject], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
I just cannot imagine why this happens all of a sudden. Do you have some ideas where to look at?