Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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