Fifty PowerShell commands for SharePoint Online for Sys Admins

So here is the list of PowerShell commands and hope it helps 🙂 but before we get started – it’s important to remember the following:

Considerations before using PowerShell commands for SharePoint Online:

  • Understand the purpose of the command and what it does before running it.
  • Ensure that you have the appropriate permissions to run the command.
  • Test the command in a non-production environment before running it in a production environment.
  • Backup your SharePoint Online data before running any commands that modify or delete data.
  • Use caution when modifying SharePoint Online configurations and properties, as it could affect the functionality of the site or web.
  • Keep track of the PowerShell commands that you run and their results.
  • Stay up to date with the latest SharePoint Online updates and changes, as they may affect the PowerShell commands that you use.

Fifty PowerShell Commands

  1. Connect-SPOService – To connect to the SharePoint Online service
  2. Get-SPOSite – To retrieve information about SharePoint Online sites
  3. Set-SPOSite – To modify properties of a SharePoint Online site
  4. Get-SPOUser – To retrieve information about users in SharePoint Online
  5. Grant-SPOPermission – To grant permissions to a user or group in SharePoint Online
  6. Remove-SPOPermission – To remove permissions from a user or group in SharePoint Online
  7. Get-SPOGroup – To retrieve information about SharePoint Online groups
  8. New-SPOGroup – To create a new SharePoint Online group
  9. Add-SPOUserToGroup – To add a user to a SharePoint Online group
  10. Remove-SPOUserFromGroup – To remove a user from a SharePoint Online group
  11. Get-SPOList – To retrieve information about a SharePoint Online list
  12. New-SPOList – To create a new SharePoint Online list
  13. Remove-SPOList – To remove a SharePoint Online list
  14. Add-SPOListItem – To add an item to a SharePoint Online list
  15. Get-SPOListItem – To retrieve an item from a SharePoint Online list
  16. Set-SPOListItem – To modify an item in a SharePoint Online list
  17. Remove-SPOListItem – To remove an item from a SharePoint Online list
  18. Get-SPOContentType – To retrieve information about a SharePoint Online content type
  19. New-SPOContentType – To create a new SharePoint Online content type
  20. Remove-SPOContentType – To remove a SharePoint Online content type
  21. Get-SPOView – To retrieve information about a SharePoint Online view
  22. New-SPOView – To create a new SharePoint Online view
  23. Remove-SPOView – To remove a SharePoint Online view
  24. Get-SPOField – To retrieve information about a SharePoint Online field
  25. New-SPOField – To create a new SharePoint Online field
  26. Remove-SPOField – To remove a SharePoint Online field
  27. Get-SPOSiteGroup – To retrieve information about a SharePoint Online site group
  28. New-SPOSiteGroup – To create a new SharePoint Online site group
  29. Remove-SPOSiteGroup – To remove a SharePoint Online site group
  30. Get-SPOSiteUser – To retrieve information about a SharePoint Online site user
  31. Add-SPOSiteUser – To add a user to a SharePoint Online site
  32. Remove-SPOSiteUser – To remove a user from a SharePoint Online site
  33. Get-SPOWikiPage – To retrieve information about a SharePoint Online wiki page
  34. New-SPOWikiPage – To create a new SharePoint Online wiki page
  35. Remove-SPOWikiPage – To remove a SharePoint Online wiki page
  36. Get-SPOFile – To retrieve information about a SharePoint Online file
  37. New-SPOFile – To upload a new file to SharePoint Online
  38. Remove-SPOFile – To remove a SharePoint Online file
  39. Get-SPOFileVersion – To retrieve information about a SharePoint Online file version
  40. Restore-SPOFileVersion – To restore a SharePoint Online file version
  41. Get-SPOFolder – To retrieve information about a SharePoint Online folder
  42. New-SPOFolder – To create a new SharePoint Online folder
  43. Remove-SPOFolder – To remove a SharePoint Online folder
  44. Get-SPOWebPart – To retrieve information about a SharePoint Online web part
  45. Add-SPOWebPart – To add a web part to a SharePoint Online page
  46. Remove-SPOWebPart – To remove a web part from a SharePoint Online page
  47. Get-SPOPropertyBag – To retrieve information from the property bag of a SharePoint Online site or web
  48. Set-SPOPropertyBag – To modify the property bag of a SharePoint Online site or web
  49. Get-SPOApp – To retrieve information about a SharePoint Online app
  50. Remove-SPOApp – To remove a SharePoint Online app

Leave a Reply