If we don’t have proper access into SQL Server database for opening Powershell window then we are getting above error, its new feature for SharePoint 2010 and SQL Server 2008.
We have to give DBO owner rights to SharePoint configuration database for ‘SharePoint_Shell_Access’ database role.
We have to give DBO owner rights to SharePoint configuration database for ‘SharePoint_Shell_Access’ database role.
Reference Links: