newpersn Posted August 11 Posted August 11 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?
willtech Posted August 11 Posted August 11 (edited) What versions of the module have you got installed ? (Get-Module -Name ExchangeOnlineManagement -ListAvailable) Edited August 11 by willtech
newpersn Posted August 11 Author Posted August 11 Quote ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 3.10.1 ExchangeOnlineManagement {Add-VivaModuleFeaturePolicy, Add-VivaOrgInsightsDelegatedRole, Add-WorkforceInsightsDelegationAccess, Get-ConnectionInformation...} PS C:\WINDOWS\system32>
willtech Posted August 11 Posted August 11 hmm.. ok just the one then. Tried uninstalling the ExchangeOnlineManagement and clearing the module folder of ExchangeOnlineManagement then reinstalling ?
willtech Posted August 11 Posted August 11 (edited) Running Powershell 7 ? Can you try and run without being in an admin session on powershell. Edited August 11 by willtech
newpersn Posted August 11 Author Posted August 11 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>
newpersn Posted August 11 Author Posted August 11 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.
newpersn Posted August 11 Author Posted August 11 Something is blocking IPPSSession from running when connected at work. Took my laptop home for lunch and it worked. Now to delete this email.. 1
k-strider Posted August 11 Posted August 11 can you not use an azure cloud shell to run these? we run all our google gam stuff from a google cloud shell instance
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now