Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In the Windows PowerShell command prompt, you can add a DLL file by using the Add-Type cmdlet. To create an object, use the New-Object cmdlet to create an instance of the DLL file's type. To call the method of the DLL file, use the Invoke-Method cmdlet. Here is an example command that shows how to do it:
- Add-Type -Path "<path to dll file>"
- $myObject = New-Object <type name>
- Invoke-Method -InputObject $myObject -Name "<method name>"
Add Comment
Please, Sign In to add comment