Skip to content

New-PSSession still fails with a NullReferenceException on macOS #4029

@tthoma24

Description

@tthoma24

I believe this is related to #942, which is closed. Someone claimed this works from Ubuntu. Is this not supported on macOS, or is this a bug?

Steps to reproduce

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Expected behavior

Session would be initiated

Actual behavior

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Management.Automation.Remoting.PrioritySendDataCollection.Clear()
   at System.Management.Automation.Remoting.Client.BaseClientTransportManager.CloseAsync()
   at System.Management.Automation.Remoting.Client.WSManClientSessionTransportManager.CloseAsync()
   at System.Management.Automation.Remoting.Client.BaseClientTransportManager.Finalize()
Abort trap: 6

Environment data

> $PSVersionTable

Name                           Value                                                           
----                           -----                                                           
PSVersion                      6.0.0-beta                                                      
PSEdition                      Core                                                            
BuildVersion                   3.0.0.0                                                         
CLRVersion                                                                                     
GitCommitId                    v6.0.0-beta.2                                                   
OS                             Darwin 17.0.0 Darwin Kernel Version 17.0.0: Mon May 29 20:35:...
Platform                       Unix                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                         
PSRemotingProtocolVersion      2.3                                                             
SerializationVersion           1.1.0.1                                                         
WSManStackVersion              3.0  

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productOS-macOSResolution-FixedThe issue is fixed.WG-RemotingPSRP issues with any transport layer

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions