◐ Shell
clean mode source ↗

Fix WSManInstance COM interface with ResourceURI by jborean93 · Pull Request #26692 · PowerShell/PowerShell

Fixes the COM definitions of some WSMan classes that stopped
Set-WSManInstance and New-WSManInstance from working. As the COM
definition places the put/set method for `ResourceUri` before the get,
it is important we do the same otherwise .NET will call the wrong method
in the VTable throwing an exception around an invalid URI. This has been
broken since v6 when the CORECLR directives changed it from an IDispatch
implementation to IUnknown with the IDispatch methods in the interface.

Copilot AI review requested due to automatic review settings

January 15, 2026 04:29

SeeminglyScience

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026