Client-side SharePoint PowerShell–Feature Activate/DeActivate


# Include SPPS Import-Module .\spps.psm1 # Setup SPPS Initialize-SPPS -siteURL "https://example.sharepoint.com/" -online $true -username "sitecollectionadmin@example.onmicrosoft.com" -password "password" # Activate Publishing Site Feature Activate-Feature -featureId "f6924d36-2fa8-4f0b-b16d-06b7250180fa" -force $false -featureDefinitionScope "Site" #Activate Publishing Web Feature Activate-Feature -featureId "94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb" -force $false -featureDefinitionScope "Web"

https://sharepointpowershell.codeplex.com/