Tuesday 13 December 2016

Overview for SharePoint Online Management Shell

Overview for SharePoint online Management shell
Today I am writing about SharePoint online Management shell, there is many of Article about the same but still many beginners are getting confuse about the same.
We are using SharePoint online Management shell for efficiently manage SharePoint users, sites and in short I can say will make easiest for Administrator tasks.
Windows SharePoint Online Management shell is command line operation in windows PowerShell are composed of series of command to use in Office 365 or SharePoint online.
There is a lot to learn about SharePoint Management and Office 365 shell.
Below is the URL to learn the same from MSDN:
So I will start my first use of SharePoint online, here we will describe about below points:
  • Downloading and installation of SharePoint online Management Shell
  • Connect SharePoint site using PowerShell
  • Creating site using command
  • Viewing site collection and subsite and etc…

Let us start from downloading and installation SP online Management shell.

  • Download the SharePoint Online Management Shell from below and save the same to local system.



  • Install any of version from above and install the same to local system.
  • Once it will install we will open the SP command using administrator


  • Once SharePoint online Management shell will get open below command to connect your site page using below Command:

Connect-SPOService -Url https://site-admin.sharepoint.com -credential admin@addf.onmicrosoft.com

  • Now enter your site password here and click on ok and wait for some time till site, will be getting below screen shot after getting connect


Note: might be we will getting few of errors, please refer the below site to fix the issue:




  • Viewing sites created on SharePoint site collection using command.

Below is the screen shots for the same:

Run Get-SPOSite

  • We will showing how to create SharePoint site using SharePoint online command.
  • Run the PowerShell SharePoint online command and enter below command to do so for.

New-SPOSite: here is full syntax to create new site collection

New-SPOSite -Url https://mod785983-admin.sharepoint.com/sites/mynewsite -Owner admin@MOD785983.onmicrosoft.com -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 the and connect or create the site collection using SharePoint online PowerShell.

We have the list of SharePoint commands from TechNet site.

See below URL:


Below are the few of command copied from above link:
Cmdlet name
Description
Adds an existing Office 365 user or an Office 365 security group to a SharePoint group.
Connects a SharePoint Online global administrator to a SharePoint Online connection (the SharePoint Online Administration Center). This cmdlet must be run before any other SharePoint Online cmdlets can run.
Disconnects from a SharePoint Online service.
Returns application errors.
Returns all installed applications.
Returns all deleted site collections that are in the Recycle Bin.
Returns external users that are located in the tenant's folder based on specified criteria.
Returns one or more site collections.
Returns all the groups on the specified site collection.
Returns SharePoint Online organization properties.
Retrieves SharePoint Online company logs.
Returns the time when the SharePoint Online organization logs are collected.
Returns the current tenant configuration status.
Returns the SharePoint Online user or security group accounts that match given search criteria.
Shows all site templates that match the given identity.
Creates a new SharePoint Online site collection for the current company.
Creates a new group in a SharePoint Online site collection.
Removes a SharePoint Online deleted site collection from the Recycle Bin.
Permanently removes a collection of external users from the tenant’s folder.
Sends a SharePoint Online site collection to the SharePoint Online Recycle Bin.
Removes a SharePoint Online group from a site collection.
Disables the feature for the tenancy.
Removes a user or a security group from a site collection or a group.
Checks and repairs the specified site collection and its contents.
Requests to create a copy of an existing site collection for the purposes of validating the effects of upgrade without affecting the original site.
Restores a SharePoint Online deleted site collection from the Recycle Bin.
Sets or updates the values of one or more properties for a site collection.
Updates the SharePoint Online owner and permission level on a group inside a site collection.
Sets properties on the SharePoint Online organization.
Enables the tenancy and sets the domain GUIDs.
Configures properties on an existing user.
Tests a SharePoint Online site collection.
Starts the upgrade process on a site collection.


Thanks

No comments:

Post a Comment