SPShellAdmin – Permission to run farm level powershell cmdlets in SharePoint

In order to run PowerShell cmdlets in SharePoint 2010/2013, user should have necessary privileges to SharePoint object model and to SharePoint databases. Even if a user is added as farm admin, he necessarily do not have access to run powershell cmdlets unless user is having SPShellAdmin access.

Adding users to this access level, provides the ability to run farm level powershell cmdlets in SharePoint

Add SPShell administrator
Add-SPShellAdmin -UserName Domain\username -Database databasename

If -Database attribute and database name are not provided, user is provided access on all the databases in the farm.

List all SPShell Administrators
Get-SPShellAdmin

Remove SPShell Administrator
Remove-SPShellAdmin -UserName Domain\username -Database databasename

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Disable feedback surveys in Power Platform

If you have worked in Microsoft 365 PowerApps or Power Automate, you might be familiar with feedback survey which pops up quite often. Microsoft wants your feedback on how likely are your to recommend Power Automate to a friend or colleague? Well, I ran into a conversation in twitter about this survey. Apparently I learnt […]

Read More

Error handling in Azure PowerShell Runbooks

Error handling in Azure PowerShell Runbooks should be handled carefully if not the runbook with continue to Completed state even if there is an Error in the script. Unlike exception, Runbook execution will continue after  an Error  by default. Windows PowerShell has multiple streams of output. Runbooks in Azure work differently in each of these […]

Read More

Step by step guide to configure Viva Connections

Update 09/23/2021 – Viva Connections public preview is available now. Steps defined in this article to create an LOB Teams application using PowerShell is not necessary now. Viva Connections app is available in Teams admin center. This new app replaces Step#3 & Step#4 in this article. You still has to go through the home site […]

Read More