I am trying to run the following code….
$obj = Get-CimInstance Win32_SoundDevice -Filter "Name = 'High Definition Audio Device'"
$obj | Invoke-CimMethod -MethodName Reset
It doesn't matter if I run it with the Get-WMIObject equivalent or the Get-CimMethod I provided, I keep getting an error message that looks like this…
Invoke-CimMethod : This method is not implemented in any class
At C:_ScriptstestingUntitled14.ps1:13 char:8
+ $obj | Invoke-CimMethod -MethodName "Reset"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (Win32_SoundDevi…_0269&SUBSY…):CimInstance) [Invoke-CimMethod], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041055,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand
The method execution states…
"This method is not static, which means you need an instance of this class to execute this method. To execute this method, right click on the Instance."
Which I guess I'm not understanding what this means. Thank you.