Setting up PowerShell for SPO
The very first thing you want to do is to get the required SharepointClient dlls.
You have the option of either getting them from the Sharepoint Online Management Shell install folder with the caveat that you will have a limited number of dlls to interact with Sharepoint.
If you want to go for the dev version( and all the dlls you can use), you can download the Sharepoint CSOM dlls from either
- Nuget
https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/16.1.6906.1200
2. Sharepoint Online CSOM official page
The difference between the two is that the Nuget version is more frequently updated than the official page so you will benefit from the most recent available methods
Note:
if you download the nuget package (recommended as is more recent) , rename the file from .nupkg to .zip, enter the archive and retrieve the dlls under
\microsoft.sharepointonline.csom.16.1.6906.1200.zip\lib\net45
Save them under C:\tools\
You are done!