Since most of the SharePoint implementation paradigms are moving fast towards the Cloud based hosting so it is now become crucial to hands on with the respective Cloud counterparts of On Premise SharePoint Implementations.
We will see the details on how to setup machine to start working with “SharePoint Online Management Shell” in the upcoming articles but in this article we will see the details on how to setup machine to start working with PowerShell in O365, since SharePoint Online is the part of Office 365 Platform it is utmost necessary to have some understanding on basic operations on O365 first.
Let’s first discuss the prerequisites for configuring PowerShell for O365
Prerequisites
We need to install the following two components in order to get PowerShell working for O365 right from your Windows PowerShell console or SharePoint Management Shell console
- Microsoft Online Services Sign-In Assistant
- Windows Azure Active Directory Module for Windows PowerShell
Install Microsoft Online Services Sign-In Assistant
You can download this component from the following Url:
http://www.microsoft.com/en-us/download/details.aspx?id=41950
- Visit the Url and Click Download
- Select 64 Bit .msi file as show below
- Choose Run once get the popup notification
- Let the installation go till any further scree appears
- Accept the License Terms and Click Install
- Allow the Installation by clicking Yes
- Let the installation run and wait till any further instructions appears
- Click Finish to exit the Installer on completion
With this we are done with the installation of Microsoft Online Services Sign-In Assistant.
Now let’s see the steps involved in installing the next component.
Install Windows Azure Active Directory Module for Windows PowerShell
You can download this component from the following Url:
http://go.microsoft.com/fwlink/p/?linkid=236297
- Visit the Url
- Choose Run once get the popup notification
- Click Next to continue with the installation
- Accept the License agreement and click Next to continue with the installation
- Choose the installation Path or continue with the defaults
- Click Next to continue
- Click install to Start the Installation
- Allow the Installation by clicking Yes
- Let the installation run and wait till any further instructions appears
- Click Finish to exit the Installer on completion
With this we are done with the installation part now the next thing would be to verify if the components are installed as expected and SharePoint Online Management Shell is responding.
Verify configuration of SharePoint Online Management Shell
I am assuming that you have got a valid O365 Developer Account as we would be needing it in the upcoming steps.
If you don’t have the O365 Developer Account yet, you can create it by Navigating https://products.office.com
Follow the steps below in order to verify the “SharePoint Online Management Shell” is responding as expected:
- Launch SharePoint 2013 Management Shell
- Run the following commands
Import-Module MSOnline
$userCredentials = Get-Credential
Enter your O365 Credentials when asked for
Connect-MSOLService -Credential $userCredentials
Try connecting to MSOLService using the above command and see if we get success
If the Command Prompt returns back without any errors that means we are able to connect to the service successfully.
Get-MSOLUser
Try exporting the list of Active User using the above command and see if it is responding with the correct user information
We can user information is returned by this Command showing PowerShell of O365 is configured as expected and we are good to go. 🙂
We can further verify this information by logging into Office 365 Admin Center
- Browse https://login.microsoftonline.com
- Enter O365 Credentials and login
- On the Home page select Admin Center Tile
- Once you reached Admin Center Page, select Users >Active Users from left navigation
Sure enough we can see the same User Information as returned by this Command, this ensures that we are done with configuration of PowerShell for Office 365 correctly.
I will meet you again in my upcoming articles with some more useful commands to work with SharePoint Online & Office 365.
Hope you find helpful.