Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Note that the user that can give your user the shell admin permissions to the specific content database need to be shell admin itself. A good bet is your install account. Also remember that the shell that is used to add your permissions must be run with administrative privileges if UAC is enabled Commented Apr 20, 2011 at 19:12
  • thanks for the response but use of Add-SPShellAdmin did not help, am getting the same exception Commented Apr 21, 2011 at 4:12
  • @Anders, UAC is disabled and both logged in user Y and user X running the scripts are system admin Commented Apr 21, 2011 at 4:13
  • yes systems admin, but I agree it is worth trying out assigning user Shell Access for the database. You can get the content databases in PowerShell using Get-SPContentDatabase: Get-SPContentDatabase | Where-Object {$_.Name -eq "WSS_Content"} | Add-SPShellAdmin -UserName yourdom\spadmin Commented Apr 21, 2011 at 10:06