Installing SharePoint Online Management Shell

Hi All,

I have my free trial office 365 subscription and then first step I started to writing CSOM based PowerShell scripts. This means implanting CSOM code in PowerShell script. This approach seems to be becoming very useful since there is very limited set of PowerShell cmdlets available for SharePoint Online.

So here for me first step is to install the SharePoint Online Management Shell on my local dev and connect to SharePoint Online. My local dev machine OS is Windows 7.

I have downloaded the SharePoint Online Management Shell from here . As I started installing it, got an exception as shown in following figure



Exception while installation of SharePoint Online Management Shell on Windows 7.

So PowerShell 3.0 is prerequisite for SharePoint Online Management Shell. PowerShell 3.0 is the part of Windows Management Framework 3.0. Windows 7 must have Service Pack 1 for successful installation of PowerShell 3.0.

We can download Windows Management Framework 3.0 from here. Installing Windows Management Framework 3.0 requires machine restart. After machine restart I could successfully install the SharePoint Online Management Shell.

Installation of SharePoint Management Shell creates the following folder structure on local file system. It also adds the SharePoint client assemblies.



Folder structure locally created after installation of SharePoint Management Shell.

Now next step is to connect SharePoint online through script and do some hands on. I’ll share my hands on experiences in coming posts.

References

Introduction to the SharePoint Online management shell

Thanks!

Enjoy reading

Feel free to comment / feedback / suggestions /thoughts if any or if you have any query