Jump to content

Recommended Posts

Posted

I'm trying to connect to exchange online to delete a sitewide spam email and i'm getting error when trying to connect to: Connect-IPPSSession 

 

Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
At C:\Program
Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.10.1\netFramework\ExchangeOnlineManagement.psm1:595 char:21
+                     throw $_.Exception;
+                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], JsonReaderException
    + FullyQualifiedErrorId : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

 

Has anyone else come across this before?

 

Posted (edited)

What versions  of the module have you got installed ? (Get-Module -Name ExchangeOnlineManagement -ListAvailable)

 

Edited by willtech
Posted
Quote

 

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.10.1     ExchangeOnlineManagement            {Add-VivaModuleFeaturePolicy, Add-VivaOrgInsightsDelegatedRole, Add-WorkforceInsightsDelegationAccess, Get-ConnectionInformation...}


PS C:\WINDOWS\system32>

 


 

Posted

hmm.. ok just the one then. Tried uninstalling the ExchangeOnlineManagement and clearing the module folder of ExchangeOnlineManagement then reinstalling ?

Posted (edited)

Running Powershell 7 ? Can you try and run without being in an admin session on powershell. 

Edited by willtech
Posted

PS C:\Windows\System32> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.6.4
PSEdition                      Core
GitCommitId                    7.6.4
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

PS C:\Windows\System32>
 

Posted
Quote

PS C:\Windows\System32> connect-exchangeonline

----------------------------------------------------------------------------------------
This V3 EXO PowerShell module contains new REST API backed Exchange Online cmdlets which doesn't require WinRM for Client-Server communication. You can now run these cmdlets after turning off WinRM Basic Auth in your client machine thus making it more secure.

Unlike the EXO* prefixed cmdlets, the cmdlets in this module support full functional parity with the RPS (V1) cmdlets.

V3 cmdlets in the downloaded module are resilient to transient failures, handling retries and throttling errors inherently.

REST backed EOP and SCC cmdlets are also available in the V3 module. Similar to EXO, the cmdlets can be run without WinRM basic auth enabled.

For more information check https://aka.ms/exov3-module

Starting with EXO V3.7, use the LoadCmdletHelp parameter alongside Connect-ExchangeOnline to access the Get-Help cmdlet, as it will not be loaded by default
----------------------------------------------------------------------------------------

PS C:\Windows\System32> Connect-IPPSSession
OperationStopped: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

 

Posted

Something is blocking IPPSSession from running when connected at work. Took my laptop home for lunch and it worked. Now to delete this email..

  • Haha 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...