BrightWork Tip: 1 Line PowerShell to Return your SharePoint Farm ID
Here is a very handy one line PowerShell command if you want to get the SharePoint Farm ID:
Paste this into the SharePoint Management Shell and it will display the SharePoint Farm ID for your SharePoint Server farm.
Download SharePoint Online Management Shell from here.
I hope this helps!
Originally posted 30 May 2013 – Updated to include link to SharePoint Online Management Shell