Skip to main content

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-






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 system. Please see "get-help about_signing" for more details.

you need to change execution policy of the powershell, you can use the following link to learn how to do that.
http://technet.microsoft.com/hi-in/library/ee176949(en-us).aspx





Hope this helps someone facing the same issue.

Comments

Popular posts from this blog

A simple customization in MPOS (Blank Operation) with AX7

Hi All, I recently had to add a Blank Operation to Modern POS (MPOS) to open a url from MPOS. Blank Operation as you may already be aware enable you to extend Microsoft Dynamics Retail for POS by adding custom logic that can be triggered from the Retail POS Register buttons. The way to implement Blank Operations in MPOS  is different from Enterprise POS as MPOS is a modern app as compared to EPOS which is a windows forms based app. So lets explore a very simple customization i.e. we want to open a URL on triggering a button from MPOS. 1. We would need to start with AX to add a button to the layout of MPOS. If you do not want to disturb the standard layouts its better to copy one of the existing layouts and then modify it using the designer. Please note the designer only opens in Internet Explorer so it will save you time by not trying to open it in other browsers e.g Chrome 2. Next we need to add this layout to the Store where we intend to use it, in

Hyper-V VM 100% disk utilization

I was facing a persistent issue of 100% disk utilization on starting any VM in my Hyper-V. The below link helped me to resolve it https://social.technet.microsoft.com/Forums/office/en-US/2b184f22-ea8c-4bc3-9f64-8b46eeaeef61/hyperv-host-disk-usage-at-100?forum=w8itprovirt