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
{{ message }}
Repository navigation
running enable-wsmancredssp causes PowerShell to exit with error #2599
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)
Activity
jeffbi commentedon Mar 17, 2017
The underlying cause of this is the lack of support for STA in CoreCLR. See issue #3353.
SteveL-MSFT commentedon Jul 26, 2017
#3353