Essential Project Documents

1 Line PowerShell to Return your SharePoint Farm ID

January 4, 2018 by

Here is a very handy one line PowerShell command if you want to get the SharePoint Farm ID:

(Get-SPFarm).Id

Paste this into the SharePoint Management Shell and it will display the SharePoint Farm ID for your SharePoint Server farm.

SharePoint Farm ID Get-SPFarm

Download SharePoint Online Management Shell from here.

Check out more PowerShell scripts for SharePoint and BrightWork here.

I hope this helps!

 

Originally posted 30 May 2013 – Updated to include link to SharePoint Online Management Shell

Image credit 

SharePoint Project Management Template

Share
Share
Tweet
Pin