Hi,
I am trying to remotely execute the powershell commands from a Linux and Mac servers. I installed powershell in Mac and tried to run Enter-Session.
PS> Enter-PSSession -ComputerName aaa.bbb.ccc.ddd
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
The machine I am connecting to a Windows 2012 R2 server.
Can any one help me what is wrong with my setup? If this is not the preferred way can you please suggest some alternatives without installing anything special on window server.
Thanks & Regards
Kalyan