SharePoint Troubleshooting: "microsoft.sharepoint.powershell" snap-in is not installed on this computer
Issue
The Windows PowerShell snap-in "microsoft.sharepoint.powershell" is not installed on this computer.
Cause
There could be many reasons for the issue. Below are some of them.
- SharePoint is not installed.
- Missing .DLL file in the path (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.PowerShell).
- .DLL file is corrupted.
- Unsupported version of PowerShell.
Solutions
Please follow the solutions below to resolve the issue.
SharePoint installation
Ensure SharePoint is installed on the server.
DLL Fix
Please run this command to fix the DLL for SharePoint 2013.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil /LogToConsole=true C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.Power Shell\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Powershell.dll
Compatible version
Ensure that compatible versions of PowerShell are installed according to the product version.