Forum Discussion

Ace_92's avatar
Ace_92
Copper Contributor
Aug 27, 2021
Solved

Powershell Execute a specific method from an assembly

Hello, I'm trying to execute this script.ps1 in my vm of Windows 10 This variables gives me problems : $method= $class.GetMethod("runner") $method.Invoke(0, $null) It cannot call met...
  • pvanberlo's avatar
    Aug 28, 2021
    It seems that the DLL that’s being downloaded doesn’t support a method call with the $null parameter. It’s unclear to me what this DLL is and how the method is defined. But that would be the first thing to check.

    The runner method of ClassLibrary1.Class1 in lib.dll.

Resources