You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.WSMan.Management.GPClass'
to interface type 'Microsoft.WSMan.Management.IGroupPolicyObject'. This operation failed because the QueryInterface cal
l on the COM component for the interface with IID '{EA502723-A23D-11D1-A7D3-0000F87571E3}' failed due to the following e
rror: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at Microsoft.WSMan.Management.EnableWSManCredSSPCommand.UpdateCurrentUserRegistrySettings() in C:\Users\jimtru\src\github\Forks\JamesWTruher\PowerShell-1\src\Microsoft.WSMan.Management\CredSSP.cs:line 733
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Steps to reproduce
enable-wsmancredssp -DelegateComputer ServerA.foo.xyz.com -Role Client -Force
Expected behavior
not to crash
Actual behavior
Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.WSMan.Management.GPClass'
to interface type 'Microsoft.WSMan.Management.IGroupPolicyObject'. This operation failed because the QueryInterface cal
l on the COM component for the interface with IID '{EA502723-A23D-11D1-A7D3-0000F87571E3}' failed due to the following e
rror: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at Microsoft.WSMan.Management.EnableWSManCredSSPCommand.UpdateCurrentUserRegistrySettings() in C:\Users\jimtru\src\github\Forks\JamesWTruher\PowerShell-1\src\Microsoft.WSMan.Management\CredSSP.cs:line 733
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Environment data