I was asked to download a lot of files from document library. Of course, I could open document library in Explore mode, but there was a lot of files and it could take a long time. So I’ve found a good PowerShell script to save files from document library.

It's not my code, it's just good 🙂 Here it is:

This code reads binary from each element of document library and writes binary file on disc.