Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi George,
Thanks for the tips. Windows Remote Management is running, and basic auth is enabled as per the documentation. There is no proxy server in the network.
I saw there was a logging mechanism in the V2 EOL powershell so I did the following
Connect-ExchangeOnline -EnableErrorReporting -LogDirectoryPath "c:\eol_log" -LogLevel All -UserPrincipalName ******@x.com -ShowProgress $true
The failure was the same, here is the log:
Version,Organization,ScriptName,ScriptExecutionGuid,CommandName,CommandParams,RecordCount,SentBytesCount,TotalLatencyMs,ErrorLog
v2,,,,Connect-ExchangeOnline,EnableErrorReporting;LogDirectoryPath;LogLevel;UserPrincipalName;ShowProgress,0,0,0,FullyQualifiedErrorId=ErrorMalformedDataFromRemoteCommandMicrosoft.PowerShell.Commands.ImportPSSessionCommand;CategoryInfo=InvalidResult: (:) [Import-PSSession] ArgumentException;ExceptionType=System.ArgumentException;;ExceptionMessage=System.ArgumentException: Data returned by the remote Get-FormatData command is not in the expected format.\r\n at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)|
This is the same error that I get when I call it using the older methodology:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession -Session $Session -DisableNameChecking
The line which fails is the Import-PSSession line. This all used to work for me without issue.