Thursday, September 4, 2014

'The Windows PowerShell snap-in'Microsoft.SharePoint.PowerShell is not installed on this machine'

PROBLEM: I had reinstalled Sharepoint Foundation 2013 on win 2008 R2 SP1 and when I opened Sharepoint Management Shell and I got this error:

To install the dll, run this script in Powershell

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil /LogToConsole=true C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.PowerShell\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Powershell.dll  

No comments: