When you’re running SharePoint PowerShell, deploying a solution, if you get this error, there’s a very simple fix.

Since you must be on the server at the time you got this error, just go to Start/All Programs/Administrative Tools and choose ‘Services’. When the Services screen comes up, search for ‘SharePoint 2010 Administration’ and do 2 things. First, start the service. And lastly, make sure that the Startup Type is set to Automatic, so it will happen every time the system restarts.