OfficeDev / O365-InvestigationTooling

MIT License
574 stars 360 forks source link

Script Times Out When Running Against 5000 Users #54

Open smokinghound opened 5 years ago

smokinghound commented 5 years ago

This times out constantly, I have increased the IdleTimeout property. But still this runs for a few minutes and then I get : Starting a command on the remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.

This makes the script almost impossible to use. We don't have that many mailboxes - others have far more, so how do other people manage to run this script? Any help happily received, thanks

uscanasian commented 4 years ago

@smokinghound I Modified the script so it run on a bigger organization.. it's ugly but it works...DumpDelegatesandForwardingRules_LargeOrg.ps1

It creates a folder on your desktop called Reports\DumpDelegatesandForwardingRules and thats where the data is stored until it goes into the _Completed folder under Reports\DumpDelegatesandForwardingRules with timestamp.

Also, when you get disconnected you will need to close the console and connect to the 365 again then rerun it again and it should continue where you left off.