Friday, October 31, 2014

How to use PowerShell to uninstall a feature by GUID in SharePoint 2013

 it is quite handy and quick to uninstall a Farm Solution Feature in sharePoint 2013


Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction "SilentlyContinue"

#Get-SPFeature  to find the feature that we need to uninstall from the server
Get-SPFeature -Limit ALL | Where-Object {$_.DisplayName -like "*Wing*"}

DisplayName                    Id                                                       CompatibilityLevel Scope                        
-----------                    --                                       ------------------   -----                        
WingTipToys_WingTipsContact... fe80d321-83a0-4d7d-92ce-e7b84e6ef428     15 

# uninstall the feature using the GUID id
                                              
Uninstall-SPFeature -id "fe80d321-83a0-4d7d-92ce-e7b84e6ef428"

No comments:

Post a Comment