2

Currently using SP2013, I only found tutorials that show the name of farm account only. Is there any way to get the farm name itself? Powershell, cmd, settings, etc...? Please help me thanks!

2
  • what you mean by farm name? or what are your expectation about name?
    – Waqas Sarwar MVP
    Dec 21 '17 at 3:14
  • To get farm name, we can use "(Get-SPFarm).Name" powershell script to achieve it.
    – LZ_MSFT
    Dec 27 '17 at 2:09
1

In Powershell

Use (Get-SPFarm).DefaultServiceAccount.Name should give you the Farm Account

1
  • I need the farm name, not the farm account name. Thks.
    – Denise
    Dec 21 '17 at 2:30
1

Farms do not have names. They have unique IDs, e.g. (Get-SPFarm).Id.

1

For Powershell you also have:

$SPFarm = Get-spfarm
$SPFarm.ID

Or in SharePoint 2013 Management Shell paste this:

(Get-SPFarm).Id
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.