Skip to content

running enable-wsmancredssp causes PowerShell to exit with error #2599

Closed

Description

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

> $PSVersionTable
Name                           Value
----                           -----
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSVersion                      6.0.0-alpha
PSRemotingProtocolVersion      2.3
CLRVersion
WSManStackVersion              3.0
GitCommitId                    v6.0.0-alpha.11-64-g1851e1a5dcc648dec6170d037109775b3dce0038
BuildVersion                   3.0.0.0
SerializationVersion           1.1.0.1
PSEdition                      Core

Activity

  1. added this to the milestone on Feb 21, 2017
  2. modified the milestones: 6.0.0-beta1, on Mar 16, 2017
  3. jeffbi commented on Mar 17, 2017

    @jeffbi

    The underlying cause of this is the lack of support for STA in CoreCLR. See issue #3353.

  4. SteveL-MSFT commented on Jul 26, 2017

    @SteveL-MSFT
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Blockedblocked on something external to this repoResolution-DuplicateThe issue is a duplicate.WG-RemotingPSRP issues with any transport layerWaiting - DotNetCorewaiting on a fix/change in .NET

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions