The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
21/01/2012 21:22
1. Check execution policy to be not restricted
Set-Executionpolicy RemoteSigned
2. Check admin rights
Get-SPShellAdmin
Add-SPShellAdmin -username "domain\username"
3. Run Powershell as administrator
4. Check permission in SQL content database
We were not able to run powershell scripts from our account. When we run script using another account, it worked.
PS>start-process powershell -loadprofile -credential(get-credential)