• Start your windows PowerShell on your computer.
  • Right click and select Run as administrator option.
  • Paste the below script on the PowerShell window and click the enter button.
  • Check your SharePoint site Feature will activated successfully.
  1. $context = Connect-SPOSite https://gauti.sharepoint.com
  2. # The SharePoint web at the URL.
  3. $web = $context.Web
  4. # Option 1: Let the API load what it wants to load
  5. # Retrieve all lists from the server.
  6. $context.Load($web.Lists)
  7. # Option 2: Load specific properties
  8. # Retrieve all lists from the server.
  9. # For each list, retrieve Title and Id.
  10. Load-CSOMProperties -parentObject $web -collectionObject $web.Lists -propertyNames @("Id", "Title") -parentPropertyName "Lists"
  11. # Execute query.
  12. $context.ExecuteQuery()
Run the script with the required administrator privilege. To verify that, Check the output window. Thanks for reading my blog.
Hope you have enjoyed this..