When you launch the SharePoint 2013 or 2010 Management Shell (in this case SharePoint 2013) :
The following error occured : “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered”
So to solve this problem
Launch this cmdlet as administrator and type
Add-SPShellAdmin -UserName Domain\User
In Other Cases you need to run the configuration wizard again.