Two Commands You Should Always Run First When Troubleshooting CompanyWeb

[Today's post comes to us courtesy of Justin Crosby from Commercial Technical Support]

Today’s post is going to cover two commands you should always run when troubleshooting CompanyWeb (SharePoint) on SBS 2011 Standard. These two commands take less than a minute to run and will catch two of our most common CompanyWeb issues.

The commands must be ran as an administrator from the SharePoint 2010 Management Shell. You can launch the shell from All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell.

From the shell you should first run:

Repair-SPManagedAccountDeployment

This command will return nothing if the SharePoint service accounts are synced with Active Directory. If you receive an error here please use the following blog post to fix it: https://blogs.technet.com/b/sbs/archive/2011/08/17/http-error-503-accessing-company-web-on-sbs-2011-standard.aspx

The second command you should run is:

(get-spserver $env:computername).NeedsUpgrade

If this command returns True you must run PSCONFIG as described in the following blog post: https://blogs.technet.com/b/sbs/archive/2011/05/24/you-must-manually-run-psconfig-after-installing-sharepoint-2010-patches.aspx. If the command returns false you will need to troubleshoot your SharePoint issue as normal.