Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MI_RESULT_INVALID_PARAMETER on New-PSSession - Linux Powershell #12219

Closed
mgorgon opened this issue Mar 27, 2020 · 1 comment
Closed

MI_RESULT_INVALID_PARAMETER on New-PSSession - Linux Powershell #12219

mgorgon opened this issue Mar 27, 2020 · 1 comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer

Comments

@mgorgon
Copy link

mgorgon commented Mar 27, 2020

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.

@mgorgon mgorgon added the Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a label Mar 27, 2020
@iSazonov iSazonov added the WG-Remoting PSRP issues with any transport layer label Mar 28, 2020
@iSazonov
Copy link
Collaborator

iSazonov commented May 8, 2020

MMI is deprecated and not supported on Unix.

@iSazonov iSazonov closed this as completed May 8, 2020
@iSazonov iSazonov added the Resolution-Answered The question is answered. label May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-Answered The question is answered. WG-Remoting PSRP issues with any transport layer
Projects
None yet
Development

No branches or pull requests

2 participants