How to activate the feature in SharePoint using Powershell Script

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.
  1. Syntax:Get-SPWebApplication xxx | Get-SPSite -Limit ALL | % {Enable-SPFeature "xxx" -Url $_.Url  
  2.   
  3. Sytntax example:  
  4.   
  5. $siteurl = "https://gowtham.sharepoint.com"  
  6. $featureName = "Enter the feature name"  
  7.   
  8. Get-SPWebApplication $waURL | Get-SPSite -Limit ALL | % {Enable-SPFeature $featureName -Url  
  9.   
  10. Use a GUID instead 'name'   
  11. 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.
Next Recommended Reading Disk Cleanup Using Powershell Scripts