I have a script that uploads files to Office 365 but when a big file is uploaded it fails and says operation has timed out.

Is there anyway of increasing this in PowerShell or some settings to allow my script to upload the bigger files?

1 Answer 1


It would be difficult to know the exact cause of your error without actually seeing some code or error message. One of the common reasons could be that you arent using the REST api and hence are only allowed a limited file size to upload.

The article here explains how to upload using REST with Powershell. Also check out this SO question previously answered.

As a side note, I suggest you do such operations using a console app that uses PnP Core (Legend says it makes your life worth living. Ha ha).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.