How to Set up your SharePoint 2013 Online Management Shell to connect to SharePoint online sites?

How to Set up your SharePoint 2013 Online Management Shell to connect to SharePoint online sites?
InfoPath alternatives for form designing SharePoint

In this post we will discuss how we can set up SharePoint 2013 Online Management Shell to connect to SharePoint online sites. If you directly try to connect to a SharePoint online site from your local SharePoint 2013 management shell, you may receive below error message.

Connect-SPOService : The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet, function, script file, or operable program.

You can check:
– Unable to add Napa in Office 365 development Site in SharePoint Online

– Steps to create a new managed property SharePoint 2013 online

– SharePoint Server 2016 Installation Step by Step

Follow below step to set up the environment:
– First download and install Windows Management Framework 3.0.

– Then download and install SharePoint Online Management Shell.

– Now if you will search for SharePoint Online Management Shell. This will open your management shell through which you can connect to your SharePoint online sites
.
– You can run the below command
Connect-SPOService -Url https://onlysharepoint2013-admin.sharepoint.com/ -credential Bijay@OnlySharePoint2013.onmicrosoft.com

Here https://onlysharepoint2013-admin.sharepoint.com/ is my SharePoint Online Administration Center.

Once you run the command it will ask you for password.

Then you can run the Get-SPOSite which will display all your sites.

Connect through Windows PowerShell ISE:

You can open your Windows PowerShell ISE in admin mode and can write commands like below:
Import-Module Microsoft.Online.SharePoint.Powershell -Verbose

Connect-SPOService -Url https://onlysharepoint2013-admin.sharepoint.com/ -credential Bijay@OnlySharePoint2013.onmicrosoft.com

Get-SPOSite

Then it will display results like below:

 How to Set up your SharePoint 2013 Online Management Shell to connect to SharePoint online sites?
How to Set up your SharePoint 2013 Online Management Shell to connect to SharePoint online sites?

Sometime if it gives errors like:

Connect-SPOService : The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet, function, script file, or operable program.

You can try writting like below:
Import-Module Microsoft.Online.SharePoint.Powershell -Verbose

or

Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking

You can follow this office article which give you lots of useful cmdlets.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply