SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get the name of the Farm account ? I can see it listed in Get-SPManagedAccount, but do not see any properties on the SPManagedAccount objects to be able to dynamically filter by and determine if it's the farm administrator.

share|improve this question
up vote 13 down vote accepted

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

share|improve this answer
seems to work - thanks! – David Martines Apr 20 '12 at 13:46

This will give you the Farm Administrators:

$ca = [Microsoft.SharePoint.Administration.SPWebService]::AdministrationService.WebApplications | Select -First 1
$root = $ca.Sites["/"].RootWeb
$grp = $root.SiteGroups["Farm Administrators"]


Get-SPManagedAccount will give you managed accounts

There should only be the farm admin common in these two groups

share|improve this answer
Another more "powershell'is" way to find CA Get-SPWebApplication -IncludeCentralAdministration | ? IsAdministrationWebApplication – Anders Rask Apr 10 '14 at 8:23

Alternatively to PowerShell, SharePoint Timer Service runs under farm account. Check it out and you get farm account

share|improve this answer
Do you have some steps to check SharePoint Timer Service, if so can you please share it as part of an answer. – Asad Refai Aug 19 '15 at 9:28

This is what I used to change the farm account




share|improve this answer
Can you please add more details regarding what parameters to pass – Robert Lindgren Apr 10 '14 at 8:39

To change the farm account you need to use stsadm, still.

stsadm –o updatefarmcredentials –userlogin DOMAIN\username –password password

share|improve this answer
The question is not about how to change farm account – Amal Hashim Nov 18 '14 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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