I have a weird error. I am trying to get my SharePoint development computer setup and it has been a horrific experience. I was able to get my SharePoint instance installed properly. When I run powershell normally all is fine and I can access the SharePoint powershell commands, but I need to provision the SecurityTokenService for SharePoint. I right clicked on the management shell and clicked Run As Administrator and it states the below error.

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

I really don't understand why when running as an adminstrator it cannot find it but when I run it normally it does find it.

I am lost at the moment on what to do.

  • are you running the Windows powershell or SharePoint powershell? try to run the SharePoint powershell..Start > all program > Microsoft SharePoint products > sharepoint 2013 management shell – Waqas Sarwar MVP Jun 13 '14 at 16:08
  • I right click on SharePoint 2010 Management Shell and click run as administrator and I get the error. When I just open it. it runs correctly but I can't perform actions that require administrator priviledges – Joseph D Surgeon Jun 13 '14 at 16:26
  • this is weird, try this link;vintentou.wordpress.com/2011/01/27/… – Waqas Sarwar MVP Jun 13 '14 at 18:27
  • I tried that link already and it actually screwed the powershell for sharepoint. I had to uninstall SharePoint and reinstall to get it to work. also note that I am using windows 8.1 – Joseph D Surgeon Jun 13 '14 at 18:46
  • You installed SharePoint on Windows 8.1? this is not supproted...people still able to install it but i recommend, use the Hype V feature of Windows 8.1 Pro and build VM. – Waqas Sarwar MVP Jun 13 '14 at 18:53

As you mentioned, You installed sharepoint on windows 8.1, which is not supported by MSFT, that's why you see these kind of weird issue. Poeple still able to install the sharepoint with some hack but you will not get 100% from it.

Although in previous version, MSFT Support Sp2010 on win 7 but they stoped it in 2013. Now their appraoch is either using the Hype-V on windows 8.1 Pro or higher or use the windows azure for development.

here is a blog which help you build a dev farm.


| improve this answer | |
  • Thank you this helped me resolve my issue and save hours of headache ha-ha... Thanks Buddy – Joseph D Surgeon Jun 13 '14 at 19:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.