{"id":48,"date":"2012-11-21T21:53:23","date_gmt":"2012-11-21T21:53:23","guid":{"rendered":"https:\/\/www.sharepoint13.org\/?p=48"},"modified":"2012-11-21T21:53:23","modified_gmt":"2012-11-21T21:53:23","slug":"check-sp-version-and-build","status":"publish","type":"post","link":"https:\/\/www.sharepoint13.org\/?p=48","title":{"rendered":"Check SP version and build"},"content":{"rendered":"<p>Today I needed to patch a SP farm. And all I got from the dispatcher was, well it is a SharePoint farm\u2026 Here is my story on a nice solution, for Geeks?<\/p>\n<p>First I ran PowerShell to determine Major version (2013 or 2010):<\/p>\n<p><strong>$ver = (Get-PSSnapin microsoft.sharepoint.powershell).Version.Major      <br \/>If ($ver -eq &quot;15&quot; )       <br \/>&#160;&#160;&#160; {       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Output &quot;SharePoint 2013 Wopi is in the system&quot;       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br \/>&#160;&#160;&#160; elseif ($ver -eq &quot;14&quot;)       <br \/>&#160;&#160;&#160; {       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Output &quot;SharePoint 2010 still hanging in there&quot;       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; else       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Output &quot;No SharePoint or old SP may the Force be with U&quot;       <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<\/strong> <\/p>\n<p>ANSWER: \u201c<strong>SharePoint 2010 is still hanging in there\u201d<\/strong><\/p>\n<p>Now it is time to identify the Build version:    <br \/><strong>(get-spfarm).buildversion<\/strong> <\/p>\n<p><a href=\"https:\/\/www.sharepoint13.org\/wp-content\/uploads\/2012\/11\/buildversion.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"buildversion\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"buildversion\" src=\"https:\/\/www.sharepoint13.org\/wp-content\/uploads\/2012\/11\/buildversion_thumb.jpg\" width=\"435\" height=\"139\" \/><\/a> <\/p>\n<p>Finally jump over to Todd Klindt&#8217;s SharePoint Admin Blog   <br \/>for complete Buildnumber and also downloadable links. Thanks Todd! \ud83d\ude42    <br \/><a href=\"http:\/\/www.toddklindt.com\/sp2010builds\">http:\/\/www.toddklindt.com\/sp2010builds<\/a>    <br \/><a href=\"http:\/\/www.toddklindt.com\/sp2013builds\">http:\/\/www.toddklindt.com\/sp2013builds<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I needed to patch a SP farm. And all I got from the dispatcher was, well it is a SharePoint farm\u2026 Here is my story on a nice solution, for Geeks? First I ran<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[13,11,12,5,14],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-tip","tag-buildversion","tag-powershell","tag-sharepoint-2010","tag-sharepoint-2013","tag-updates"],"_links":{"self":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":1,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}