Skip to content

ERROR_WSMAN_INVALID_SELECTORS #3771

@michelderooij

Description

@michelderooij

When connecting to Exchange Online, is starts to import the session commands (but slow), then throws an ERROR_WSMAN_INVALID_SELECTORS. Account used is regular account (non-MFA).

Steps to reproduce

Open Bash on Ubuntu on Windows
Start PowerShell session
$O365Credential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $O365Credential -Authentication Basic -AllowRedirection
Import-PSSession -Session $Session

Expected behavior

Connection to Office 365 session.

Actual behavior

Import-PSSession : Running the Get-Command command in a remote session reported the following error: Starting a command on the remote server failed with the following error message : ERROR_WSMAN_INVALID_SELECTORS: The
WS-Management service cannot process the request because the request contained invalid selectors for the resource. For more information, see the about_Remote_Troubleshooting Help topic..
At line:1 char:1

  • Import-PSSession -Session $Session
  •   + CategoryInfo          : InvalidResult: (:) [Import-PSSession], RuntimeException
      + FullyQualifiedErrorId : ErrorFromRemoteCommand,Microsoft.PowerShell.Commands.ImportPSSessionCommand
    
    

Environment data

Bash on Ubuntu on Windows
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

$PSVersionTable:
PSVersion 6.0.0-beta
PSEdition Core
BuildVersion 3.0.0.0
CLRVersion
GitCommitId v6.0.0-beta.1
OS Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Metadata

Metadata

Assignees

Labels

Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-RemotingPSRP issues with any transport layer

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions