Skip to main content

Posts

Showing posts with the label SharePoint Management Shell

PowerShell snap in not loading in SharePoint Management Shell

Recently on one of my VMs I came acrosss the above error on opening SharePoint Mangement Shell, which mentioned that "The term 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1' is not recognized as the name of a cmdlet, function, ..." As a newbie to PowerShell it took me quite some time of searching for a solution I realized I simply had to enable a feature in the server manager (as the OS is Windows Server 2008 R2 Enterprise). The steps for this are listed in the link below- http://techinfoblog.net/how-to-enable-install-the-windows-powershell-integrated-scripting-environment-ise-in-windows-server-2008-r2/ Note: The name of the feature will vary based on OS version - e.g. for Windows Server 2008 the feature name is Windows PowerShell. if you see the following error message File "testpath.ps1" cannot be loaded because the execution of scripts is disabled on this ...