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.