Troubleshooting SharePoint

Put these two PowerShell commands in your noggin.  When you have SharePoint issues, your first knee jerk should be to NOT rip out SharePoint but to try one of these commands instead.


(edit – I forgot the NOT in there)


Remember after SharePoint updates, you need to run psconfig to complete the updates.


http://blogs.technet.com/b/sbs/archive/2011/08/19/two-commands-you-should-always-run-first-when-troubleshooting-companyweb.aspx


[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: http://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: http://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.

2 Thoughts on “Troubleshooting SharePoint

  1. “your first knee jerk should be to rip out SharePoint”

    Not.

  2. “your first knee jerk should be to rip out SharePoint”

    Actually yes. Rip it out and leave it out. It’s too much of a hassle for what it gives you.

Post Navigation