Kwizcom Forms

Excel at SharePoint Online Management Shell

SharePoint Online management shell

Any developer / Admin will land on to SharePoint online management shell to perform any operation. So I would like to bring an easy way to make our day-in- day life easy with the below list of commands.

Ensure that you have installed the latest version of SPO Management shell.

SharePoint deveopment training course

If you are new to SharePoint Online Management Shell, read the below two SharePoint Online management shell tutorials:

First thing first, with the below command we will get the latest / updated help from MS. So, please run this command for hassle-free scripting.

SharePoint online management shell
Importing Help from Microfost for SPO Management Shell

Now that we installed/ensured the latest management shell on your machine, we are good to start our marathon to Mars 🙂 with the below commands list.

Before we start anything I would like to give 2 important tips which help us to make our journey smooth and hassle free.

  1. How to get for a command
  2. Samples/examples for the command
SharePoint online management shell
Get command help and Examples

Below is the list of areas I would like to emphasize more in this article.

  • User operations
  • Organizing Lists / sites
  • Managing services

List of the below commands to organize the users in SPO

  • Add-SPOUser
  • Export-SPOUserInfo
  • Export-SPOUserProfile
  • Get-SPOUser
  • Get-SPOUserAndContentMoveState
  • Get-SPOUserOneDriveLocation
  • Remove-SPOUser
  • Remove-SPOUserInfo
  • Remove-SPOUserProfile
  • Revoke-SPOUserSession
  • Set-SPOUser
  • Start-SPOUserAndContentMove
  • Stop-SPOUserAndContentMove
  • Set-SPOUser
  • Start-SPOUserAndContentMove
  • Stop-SPOUserAndContentMove

To organize the site we can refer the below:


Below is the list to organize various services

  • Get-Service
  • New-Service
  • Restart-Service
  • Resume-Service
  • Set-Service
  • Start-Service
  • Stop-Service
  • Suspend-Service
  • Set-Service
  • Start-Service
  • Stop-Service
  • Suspend-Service
  • Connect-SPOService
  • Disconnect-SPOService

you can also check the sharepoint version by executing the below command.

Get-SPFarm | Select BuildVersion

You may like following SharePoint Online management shell tutorials:

Hope this helps you to expedite your scripting in SharePoint online !!!

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)


About Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

View all posts by Krishna Vandanapu →