Skip to content

Instantly share code, notes, and snippets.

@aflyen
Created September 11, 2016 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aflyen/5ee34b3894fbd14c632693a44d9b7575 to your computer and use it in GitHub Desktop.
Save aflyen/5ee34b3894fbd14c632693a44d9b7575 to your computer and use it in GitHub Desktop.
# Connect to SharePoint Online site collection and get context
Connect-SPOnline -Url "https://TENANTID.sharepoint.com/sites/news
$Context = Get-SPOContext
$Web = $Context.Site.RootWeb
$Context.Load($Web)
Execute-SPOQuery
# Enable likes ratings
Enable-CustomLikesRatingsOnLibrary -Web $Web -ListRelativeUrl "Pages"
# Close connection
Disconnect-SPOnline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment