Help! Getting 'A task was canceled' Error with Connect-IPPSSession

September 15, 2025 2 answers
Asked by TechWhiz32
I'm having trouble with the Connect-IPPSSession command in PowerShell. Every time I try to run it, I encounter this error: 'A task was canceled.' Here's the output I see: PS C:Windowssystem32> Connect-IPPSSession A task was canceled. At C:UsersuserDocumentsWindowsPowerShellModulesExchangeOnlineManagement3.6.0netFrameworkExchangeOnlineManagement.psm1:762 char:21 + throw $_.Exception.InnerException; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [], TaskCanceledException + FullyQualifiedErrorId : A task was canceled. This is a new issue for me, and I'm hoping to find out if anyone else has faced this or knows how to fix it.

Answers

ScripterGal101
Also, have you tried running the command in PowerShell 7? Sometimes certain commands behave differently in various versions of PowerShell, and that might resolve your issue.

TechWhiz32: Yes, I get the same problem there too.

Reply to this answer
PowerNerd77
Have you checked which version of the Exchange Online PowerShell module youโ€™re currently using? Running an outdated version might cause issues with commands like Connect-IPPSSession. Make sure you're on a recent version.

TechWhiz32: Iโ€™m using version 3.9.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions