Today, I am writing about SharePoint Online Management Shell. There are many articles on the same but still many beginners are getting confused. So, I decided to write a simple blog to make you understand it clearly.
We are using SharePoint Online Management Shell for managing the SharePoint users and sites efficiently.
Windows SharePoint Online Management Shell is command line operation used in Windows
PowerShell composed of series of commands to use in Office 365 or SharePoint
Online.
There is a lot to learn about SharePoint Management and Office 365 Shell.
Given is the URL
to learn the same from MSDN.
So, I will start with the use of SharePoint online.
- Download and installation of SharePoint Online Management Shell
- Connect SharePoint site using PowerShell
- Creating site using command
- Viewing site collection and subsite etc.
Let us start with downloading and installing the SP Online Management Shell.
- Download the SharePoint Online Management Shell from below and save the same to local system.
- Install any of the versions from above and install the same to local system.
- Once installed, we will open the SP command using administrator.
- Once SharePoint Online Management shell gets open, use the below command to connect your site page.
Connect-SPOService -Url https://site-admin.sharepoint.com -credential [email protected]
- Now, enter your site password here and click on OK. Wait for some time till the site gets connected.
Note
In case of getting errors, please refer to the below sites to fix the issue.
- https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_dep365/could-not-connect-to-sharepoint-online-management/c11835b8-656c-480a-8d6a-d961056ca526
- https://ziaahmedshaikh.wordpress.com/2015/09/11/working-around-with-connect-sposervice-current-site-is-not-a-tenant-administration-site/
- https://technet.microsoft.com/en-us/library/fp161392.aspx
- Viewing sites created on SharePoint site collection using command.
Below is the screenshot for the same.
Run Get-SPOSite
- Run the PowerShell SharePoint Online command prompt and enter the below command to do so for.
New-SPOSite -Url https://mod785983-admin.sharepoint.com/sites/mynewsite -Owner [email protected] -StorageQuota 1000 -Title "My new site collection"
- Once done, we can see the created site on SharePoint admin page or site collection.
So, this is the way to configure and connect or create the site collection using SharePoint Online PowerShell.
We have the list of SharePoint commands from TechNet site.
See the below URL
- https://technet.microsoft.com/en-us/library/fp161364.aspx
Below are the few of command copied from above link
Thanks