PowerShell asking for credentials frequently, while executing exchange online cmdlets.

Copper Contributor

Hi,

I am executing single exchange online cmdlet in Power Shell. But it asking for credentials frequently, for every one minute. It was too annoying, to give credentials multiple time for a single cmdlet execution.

What is the reason of this case?

And How many Exchange online sessions allowed for a tenant?

Note :  And I am using separate account for this operations.

1 Reply

This depends on many factors, but overall Exchange Online remote PowerShell is known to be prone to connectivity/stability issues. Either use the recently announced "v2" cmdlets (https://www.petri.com/exchange-online-powershell-goes-restful) or the methods detailed here: https://techcommunity.microsoft.com/t5/Exchange-Team-Blog/Running-PowerShell-cmdlets-for-large-numbe...