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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters