SharePoint Online PowerShell – Get started, issues and development

Get started

1. Download and open the SharePoint Online Management Shell

Link: https://www.microsoft.com/en-us/download/details.aspx?id=35588

Open the shell (run as administrator)

2.  Proxy authentication (Optional)

3. Connect to your SharePoint Online

Simple:

It will ask you for password.

Complete:

For more information: https://technet.microsoft.com/en-us/library/fp161372.aspx

 

Issues

Import Module issue

Run SharePoint Online Management Shell in administrator mode should resolve the error.

Connecting Issue

When I first attempted to connect to SharePoint Online with the “Connect-SPOService” command, I got the error “Connect-SPOService : Could not connect to SharePoint Online”.

The reason for that is, when you try to administer SharePoint Online (O365) via PowerShell through a proxy server the Connect-SPOService cmdlet connections fail.

To solve the problem parse the cached credentials to the proxy.

Development

Back to the days when I started to mess around with SharePoint online (in early 2015), only 41 SharePoint Online commands were available.

Compared to 782 on premise SharePoint 2013 commands, SPO shell was very restricted.

spocommands

 

Two years have passed – Microsoft has added 25 extra SPO cmdlets.

spo2017commands

 

And here are the new cmdlets in case you are curious.

sponewcommands

SharePoint Online Powershell is still far from the on premise version but you can still do several things with it such as managing users, site and customizing.

 

 

For more information about SPO Shell I recommend this blogs:

General information and how it technically works: https://en.share-gate.com/blog/sharepoint-online-management-shell

Customizing examples: http://chen.about-powershell.com/

Sources:

Download SPO Management Shell: https://www.microsoft.com/en-us/download/details.aspx?id=35588

Connect to SharePoint Online PowerShell – https://technet.microsoft.com/en-us/library/fp161372.aspx

Connect-SPOService : Could not connect to SharePoint Online – https://sharepoint.stackexchange.com/questions/154484/connect-sposervice-could-not-connect-to-sharepoint-online

 

One thought on “SharePoint Online PowerShell – Get started, issues and development

Leave a Reply to Christ Cancel reply

Your email address will not be published. Required fields are marked *