I am running this simple command from powershell under a user context, who has db_owner and SharePoint_shell rights to the SharePoint_config database. I get the following error:
PS C:\Windows\system32> Get-SPWeb <site>
Get-SPWeb : Cannot find an SPWeb object with Id or Url : <site> and site Url <site>.
At line:1 char:10
+ Get-SPWeb <<<< <site>
+ CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletGetWeb:
SPCmdletGetWeb) [Get-SPWeb], SPCmdletPipeBindException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb
Any idea this might be happening? Do I need to run this command under farm administrator account? Also, how do I find out who the farm admin is?