Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pipe for office 365 not working on linux: Get-Mailbox | Get-MailboxPermission #6206

Copy link
Copy link
@sh0375

Description

@sh0375
Issue body actions

Steps to reproduce

Office365 powershell credentials are required.
In this text I use:
Login: test@dev-o365.test.com
Password: ***

powershell -NoLogo -NoProfile

$PSSessionOptionOverride = New-PSSessionOption -MaximumReceivedObjectSize 5242880 -Culture en-US -CancelTimeout 15000 -NoMachineProfile  -MaximumRedirection 5 -ProxyAccessType None -OperationTimeout 45000 -IdleTimeout 60000 -OpenTimeout 15000
$connectionUri = "https://outlook.office365.com/powershell-liveid/"
$configurationName = "Microsoft.Exchange"
$secPasswd = ConvertTo-SecureString "***" -AsPlainText -Force 
$userCredentials = New-Object System.Management.Automation.PSCredential ("test@dev-o365.test.com", $secPasswd)
$S_exchange = New-PSSession -connectionUri $connectionUri -ConfigurationName $configurationName -SessionOption $PSSessionOptionOverride -Credential $userCredentials -Authentication Basic -AllowRedirection -WarningAction SilentlyContinue

Import-PSSession $S_exchange -WA 0

Get-Mailbox -Identity test_user | Get-MailboxPermission

Expected behavior

If launch powershell on windows machine, this script prints correct result output of Get-MailboxPermission command

Actual behavior

Sending data to a remote command failed with the following error message: MI_RESULT_FAILED For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OperationStopped: (outlook.office365.com:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : JobFailure
    + PSComputerName        : outlook.office365.com

Environment data

> $PSVersionTable
Name                           Value
----                           -----
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.18
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Reactions are currently unavailable

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 aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.The question is answered.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.