Monday, May 22, 2017

Open PowerShell as another user

This comes up quite often if you play around with PowerShell and SharePoint.  Just because you have Administrative rights in SharePoint, it doesn't follow that you can access a site programatically from PowerShell.  For that, you need to be granted Shell Admin rights on the content database that holds the site.  There are some accounts in SharePoint that are more privileged than others, and the farm account is one of those.  What you can do, assuming that you know the farm account credentials, is open up a PowerShell window as the farm account and run the Add-SPShellAdmin account with your credentials.  To open PowerShell as a different user, right click on the SharePoint 2013 Management Shell (PowerShell with Windows.SharePoint.PowerShell already loaded) shortcut, Shift+right click on the SharePoint 2013 Management Shell in the context menu, and choose Run as a different user:
Open PowerShell as a different user
That's it!  Short and sweet.


  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.
    I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
    If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

  2. Travis-CI runs the test on a Linux box and I figure it could likewise keep running on OSX, however I never attempted that. Appveyor then again is a cloud-based Continuous Integration that runs your tests on MS Windows. I find a very good website for the AppVeyor Build Monitoring, If you want you can visit this site.

  3. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.
    Also great with all of the valuable information you have Keep up the good work you are doing well.
    Java training in Chennai

    Java training in Bangalore

    Java online training

    Java training in Pune

  4. Damn so cool just yesterday found this site and today I know what's what good play for real money casino Now plans to sit here all your free time and fun and productive