1. February 2014 09:00
In previous post we connected to our Office 365 subscription check subscription status and in addition connected to Exchange and imported Exchange cmdlets.
Now we are going to connect to our SharePoint and do some stuff using PowerShell, to connect we will need SharePoint Online Management Shell, PowerShell module that allows us to manage SharePoint in Office 365, users, site collections, and sites.
Download the SharePoint Online Management Shell (32-bit and 64-bit versions of the shell are available)
After you download and install SharePoint Online Management Shell, find it in Program files and run
After you run we will connect to our SharePoint tenant using this command
Connect-SPOService –URL https://(YOURSITE)-admin.sharepoint.com –Credential firstname.lastname@example.org
Aster successful connection, lets do some stuff, for example view of our SharePoint sites list using command:
Alternatively, you can use the Windows PowerShell Integrated Scripting Environment (ISE), which is preferred and recommended scripting environment. After you have installed the SharePoint Online Management Shell, the Windows PowerShell cmdlets for SharePoint Online will be available on your computer.
Start the Windows PowerShell ISE, select the Microsoft.Online.SharePoint.PowerShell module from the command browser
You will be able to see the available Windows PowerShell cmdlets for SharePoint Online.
That is for now.