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 ...
Hi, welcome to my blog. Do leave a comment if you find any post helpful or have suggestions. I have dedicated this blog to try to put solutions to some of the technical issues I faced as an application developer -Hitesh Manglani