I was getting the above error while running the powershell commnad on new SP server
The solution around is that the user must be added to Shell Admin database to run any commands with admin access. Open your powershell command prompt and run the following command:-
Add-SPShellAdmin -UserName "name of the user". Also make sure user has access in Sql server too.. And this should fix the problem...
No comments:
Post a Comment