Steps
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.
- Syntax:Get-SPWebApplication xxx | Get-SPSite -Limit ALL | % {Enable-SPFeature "xxx" -Url $_.Url
-
- Sytntax example:
-
- $siteurl = "https://gowtham.sharepoint.com"
- $featureName = "Enter the feature name"
-
- Get-SPWebApplication $waURL | Get-SPSite -Limit ALL | % {Enable-SPFeature $featureName -Url
-
- Use a GUID instead 'name'
- Example:Get-SPWebApplication $siteurl | Get-SPSite -Limit ALL | % {Enable-SPFeature "Feature GUID" -Url $_.Url}
Run the script with the required administrator privilege.
To verify that, go the Sitecollection features check the feature is activated or not.
Thanks For reading.