XyberSchwifty
❔ CIM Class MDM_RemoteWipe Method Question
Hi friends,
I am attempting to call a method using
CimSession.InvokeMethod()
called doWipeProtectedMethod
. Microsoft does not seem to provide a lot of documentation on this, so I am confused about the parameters that are supposed to be used with it.
Here's the Microsoft Doc and my current code:
https://learn.microsoft.com/en-us/windows/win32/dmwmibridgeprov/mdm-remotewipe-dowipeprotectedmethod
https://learn.microsoft.com/en-us/dotnet/api/microsoft.management.infrastructure.cimmethodparameter.create?view=powershellsdk-7.3.0
I am not understanding what to do with the "Object" parameter of the CimMethodParamater.Create() method.
Also, if what I'm doing seems correct, then I don't understand why my session.InvokeMethod()
fails.
I get the following .NET application error:
4 replies