Forum Discussion
TechAgent
Dec 14, 2020Copper Contributor
Exchange online PowerShell timeout
Hi All, I am running one PowerShell script is a long-running script. Initially, it is running successfully after 90 min approx it starts giving an error that cmdlet not recognized. For example be...
VasilMichev
Dec 14, 2020MVP
That's a standard issue with session disconnect. Plenty of articles/threads on how to optimize code to account for this are available online, for example this blog: https://techcommunity.microsoft.com/t5/exchange-team-blog/running-powershell-cmdlets-for-large-numbers-of-users-in-office/ba-p/604280
- Victor_OnofreiFeb 18, 2021Copper Contributor
How is it that before I was able to run such scripts against Office 365 and now I can't anymore?
I can't seem to be able to accommodate the script wrapper into my script.
Not to mention the fact that the session doesn't actually become broken, somehow it remains opened but no EXO cmdlets available anymore.