Skip to content

MI_RESULT_INVALID_PARAMETER on New-PSSession - Linux Powershell #12219

@mgorgon

Description

@mgorgon

Steps to reproduce

PS /> $pass =  ConvertTo-SecureString "XXX" -AsPlainText -Force
PS /> $creds = New-Object -TypeName PSCredential -ArgumentList "xxx@FQDN", $pass
PS /> $sessionOption = New-PSSessionOption -SkipCACheck -SkipCNCheck;
PS /> $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://serv.FQDN/PowerShell/" -Authentication negotiate -Credential $creds -SessionOption $sessionOption

Expected behavior

Obtained usable session handle - this works fine from Windows Host

Actual behavior

New-PSSession: [serv.FQDN] Connecting to remote server serv.FQDN failed with the following error message : MI_RESULT_INVALID_PARAMETER For more information, see the about_Remote_Troubleshooting Help topic.

Environment data

mcr.microsoft.com/powershell:7.1.0-preview.1-centos-7

PS /> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.1.0-preview.1
PSEdition                      Core
GitCommitId                    7.1.0-preview.1
OS                             Linux 4.14.111-boot2docker #1 SMP Fri Apr 5 23:05:10 UTC 2019
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Using ComputerName instead of ConnectionUri works, but in that way, Exchange commands are not recognized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.WG-RemotingPSRP issues with any transport layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions