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
When given -Role Client, these cmdlets attempt to make use of the IGroupPolicyObject COM interface. IGroupPolicyObject requires that it be called from a Single Thread Apartment. STA is not supported in CoreCLR, so these cmdlets will fail when using the Client role.
When given
-Role Client, these cmdlets attempt to make use of theIGroupPolicyObjectCOM interface.IGroupPolicyObjectrequires that it be called from a Single Thread Apartment. STA is not supported in CoreCLR, so these cmdlets will fail when using the Client role.This is the underlying cause of issue #2599.
The core folk have an existing issue for support of STA.
Steps to reproduce
Enable-WSManCredSSP -DelegateComputer ServerA.foo.xyz.com -Role Client -Forceor
Disable-WSManCredSSP -Role ClientExpected behavior
Perform the operation without error.
Actual behavior
Throws
System.InvalidCastExceptionwhen trying to cast an object toIGroupPolicyObject.Environment data