I am getting following error while restoring the backup (.bak) file on my SharePoint server (SharePoint 2010). The backup file resides on the same machine.
Restore-SPSite : This operation can be performed only on a computer that is joi ned to a server farm by users who have permissions in SQL Server to read from t he configuration database. To connect this server to the server farm, use the S harePoint Products Configuration Wizard, located on the Start menu in Microsoft SharePoint 2010 Products.
At line:1 char:15 + Restore-SPSite <<<< -Identity http://: -Path "c:\abc\file.bak" -force + CategoryInfo : InvalidData: (Microsoft.Share...dletRestoreSite: SPCmdletRestoreSite) [Restore-SPSite], SPException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRestoreS ite