Determine Your SharePoint Version Using PowerShell
Posted On November 27, 2019
It’s important to find SharePoint version because it will help developers assess what tools or applications they need to keep SharePoint system running. Have you thought about checking what version of SharePoint are you using right now? In this blog, we’ll show you quick steps on how to get SharePoint version using PowerShell.
PowerShell is a command-line shell and scripting language that’s built on .NET. It helps administrators and users to quickly automate tasks that manage operating systems and processes. PowerShell is responsible for eliminating long-standing problems and adding new features to enhance the command-line and scripting environment.
To get the version for SharePoint Online using PowerShell, you must have a username and password. You can also use the Windows PowerShell. Just open it and write this command:
Connect-PnPOnline https://dummy.sharepoint.com //Connect to a SharePoint site
Get-PnPContext //Returns a Client Side Object Model context
Click Enter. Then, insert your SharePoint username and password. Once you’re done, you’ll get the version of your SharePoint Online. It should look like this: ServerVersion: 16.0.0029.1210
To get SharePoint version for SharePoint 2010, SharePoint 2013, and SharePoint 2016, just run this (get-spfarm).BuildVersion in SharePoint Management PowerShell. You’ll most likely see this:
PS C:\Users\fpadmin.FCMS> .BuildVersion
Major Minor Build Revision
—– —- ——- ——
15 0 4420 1017
Others may have another way to get SharePoint version for SharePoint 2010 and 2013 using PowerShell. See code below.
Major Minor Build Revision
—- —- —— ——
14 0 4762 1000
If you’re using SharePoint 2007, use the code below to get SharePoint version using PowerShell.
PS >(get-item “hklm:softwaremicrosoftshared toolsweb server extensions12.0”).getvalue(“version”)
You can also use Central Administration to find SharePoint version. Simply go to Central Administration and choose Site Actions. Click Site Settings in Site Actions. A Site Information box will be displayed for you to get SharePoint version.
There’s also another way to get SharePoint version without using PowerShell. Microsoft said SharePoint does not have a version button, but the company has quick ways to find SharePoint version for SharePoint Online, SharePoint Server 2016, SharePoint Foundation 2013, SharePoint Server 2013, Enterprise SharePoint Server 2013, SharePoint Foundation 2010, SharePoint Server 2010, and SharePoint Online Small Business.
SharePoint is heavily configured and customized by developers, so it’s hard to find SharePoint version. Let’s start with determining the versions of the SharePoint server products. Go to your SharePoint server home page and click the Help? button. You’ll immediately get SharePoint version. Take note that SharePoint servers look different, but they all have a Help pane and page where you can explore to check what version of SharePoint you’re using.
There you go. Have you tried determining your SharePoint version? How did you successfully do it? Let us know in the comments section below. Don’t forget to share this blog on social media.
WATCH: How to Set Document Versioning (SharePoint 2013)