Add-SPShellAdmin / Remove-SPShellAdmin

Adding a user to have permissions to run PowerShell Scripts against a SharePoint database** **

Add-SPShellAdmin domain\user –database DB GUID** **

Simple to remove as well you just need to run:

Remove-SPShellAdmin domain\user -database DB GUID

Finding database GUID

**Get-SPDatabase **