Install a Feature in SharePoint
Scenario/Problem: You need to install a feature to SharePoint.
Solution: Use the Install-SPFeature
cmdlet with the -Path
parameter.
The Install-SPFeature
cmdlet enables you to install a feature that already has been copied or deployed to the SharePoint environment. The feature files should reside within a folder under the 14\TEMPLATE\FEATURES
location of the SharePoint servers. The folder that contains the feature files is used as the -Path
parameter with the Install-SPFeature
cmdlet, as shown in Listing 9.24.
Install-SPFeature -Path "CustomFeature" -Force
The -Force
switch parameter forces the installation and does not produce any errors if the feature ...
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.