8000 Invoke-command on remote PC/Server · Issue #2117 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
Invoke-command on remote PC/Server #2117
@schmidtmic

Description

@schmidtmic

Steps to reproduce

Start Powershell;

Invoke-Command -ComputerName some_name_for_WINPC -ScriptBlock {Get-WmiObject -Class Win32_ComputerSystem -Property Name } -Credential user_credentia

Expected behavior

Return Object containing the remote PC name

The command worked fine on Windows but not on linux.

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()

Environment data

PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0,2.0,3.0,4.0....}
BuildVersion 3.0.0.0
GitCommitID v6.0.0-alpha.9
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0