Increase Online Powershell module session time

Brass Contributor

Hi experts

for every half an hour i am getting disconnected from exchange online powershell module. i am using MFA also, how can i increase the session time for my user id. experts i dont want my session to get disconnected at all. please help with the syntax

1 Reply

You can't, this is controlled by the token lifetime and server-side configurations. Best you can do is make sure the session doesn't stay idle, but even then you still might get disconnected occasionally.