Wednesday, July 6, 2016

How to Get SharePoint Farm ID using PowerShell

Requirement: 
Get SharePoint Farm ID to apply a third party product license to our SharePoint 2016 environment.

How to Get SharePoint Farm ID?
SharePoint farm id is a GUID which is uniquely identifies each farm. To get the Farm Id in SharePoint, use this handy PowerShell code.

(Get-SPFarm).Id
Just open SharePoint 2016 Management Shell and paste this cmdlet in it to find the farm id of the SharePoint Farm. This gets your the SharePoint farm id.
How to Get SharePoint Farm ID using PowerShell
get SharePoint farm guid powershell
You'll get a GUID similar to above screenshot. Although you can query SharePoint Farm config database to get this information, its strongly recommended to use PowerShell, instead of accessing SharePoint database.



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

2 comments :

  1. My SharePoint Farm is down! Can I get it from anywhere else?

    ReplyDelete
    Replies
    1. Use this Query on SharePoint Farm config Database: SELECT * From Objects where ClassId = '674DA553-EA77-44A3-B9F8-3F70D786DE6A'

      Delete

Please Login and comment to get your questions answered!


You might also like:

Related Posts Plugin for WordPress, Blogger...