Skip to content
Header Image

Another Sharepoint Blog

This site is Just Another SharePoint Blog on troubleshooting SharePoint

  • Home
  • Blog
  • Builds
    • 2019 Builds
    • 2016 Builds
    • 2013 Builds
    • 2010 Builds
  • Resources
    • SharePoint 2013 Databases
    • Default Permissions
    • SharePoint Pals (same as clicking resources)
    • Books
      • Building a SharePoint 2016 Home Lab
      • Troubleshooting SharePoint
  • Video
    • Creating a Domain Controller and Domain
    • Create Certificate Authority
    • Keypass and RDP shortcuts
    • Creating the SQL Server
    • Creating the SP Farm with AutoSPInstaller
    • Joining WFE using AutoSPInstaller
    • Create HNSC’s with Powershell and Move ULS logging
  • About
    • Contact Us
    • Disclaimer
  • Home
  • SharePoint Administration
  • What account is the farm account and how in the @#$% do I change it?

What account is the farm account and how in the @#$% do I change it?

July 8, 2018November 13, 2019 Stacy Simpkins

Here’s a quick and dirty way to find out the farm account

 

(Get-SPFarm).DefaultServiceAccount.Name

If that account looks something like this, you need to change it

c:\(Get-SPFarm).DefaultServiceAccount.Name
NETWORK SERVICE
c:\
stsadm.exe -o updatefarmcredentials -userlogin “Domain\svc_Account” -password “$*y7uxmM2AL4_*r7” 

Make sure the account is not disabled or locked before you run the above, else your farm will lock, nothing will work because the securityTokenServiceApplicationPool runs on this account and it will get updated to the new identity that will not work because the account is either locked or disabled.

Then after you have ran that stsadm command, run this powershell, saved to a ps1 or just paste it in, to reset IIS on all servers in the farm.

########
				Write-Host "Loading SharePoint Commandlets"
				Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
				Write-Host -ForegroundColor Green " Commandlets Loaded ... Loading Variables"
				Write-Host
				[array]$servers= Get-SPServer | ? {$_.Role -eq "Application"}
				$farm = Get-SPFarm
				foreach ($server in $servers)
				{
				     Write-Host -ForegroundColor Yellow "Attempting to reset IIS for $server"
				        iisreset $server /noforce "\\"$_.Address
				        iisreset $server /status "\\"$_.Address
				        Write-Host
				        Write-Host -ForegroundColor Green "IIS has been reset for $server"
				        Write-Host
				}
				Write-Host -ForegroundColor Green "IIS has been reset across the SharePoint Farm"
				Start-Sleep -Seconds 5
				Write-host
				########

 

Happy late 4th of July and even happier SharePointing

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Related

Tagged Change Farm Account, REset IIS with PowerShell, SharePoint Farm Account Change

Post navigation

Re-creating the SharePoint Web Services Site
AutoSPInstaller Review

Related Posts

SysKit’s Security Manager for SharePoint

Another great tool From the creators of SPDocKit, comes one of the best SharePoint security management tools yet to hit…

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)
Checking if a Service account has Replicate Directory Changes

If you have ever had to set up the User Profile Synchronization Service Connection to Active Directory, then you know…

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)
Follow @SharePointStacy

Click a book to read about the book

Best SharePoint Troublshooting guide on the planet --------------------------- --------------------------- Best SharePoint Home lab guide on the planet

Recent Posts

  • The Troubleshooter Mentality
  • Moving Central Admin
  • Brand Central Admin
  • Central Admin Time zone
  • The Security Token Service is Unavailable

Recent Comments

  • Provisioning a SharePoint 2013 or 2010 Farm SharePoint Service Applications – Another Sharepoint Blog on Provisioning a SharePoint 2010 Farm Service Applications using a PowerShell Script
  • How to provision User Profile Service and avoid stuck on starting | Another Sharepoint Blog on Configuring User Profile Service, Starting Synch, and Creating SharePoint Service Applications for SharePoint 2010 or SharePoint 2013
  • How to provision User Profile Service and avoid stuck on starting | Another Sharepoint Blog on User Profile Stuck on Starting
  • Stacy Simpkins on Converting the 2013 classic web app to claims
  • ChaddTalks on Converting the 2013 classic web app to claims

Archives

  • November 2021
  • November 2020
  • October 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • October 2016
  • August 2016
  • July 2016
  • April 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • August 2015
  • July 2015
  • June 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2012

Categories

  • Active Directory Administration
  • App management
  • AutoSPInstaller
  • Cu Patching
  • Desktop Administration
  • Development
  • Distributed Cache
  • Fast Search 2010
  • FBA
  • HNSC
  • Hyper-V Administration
  • IIS
  • Managed Metadata
  • Monitoring Solution
  • Munchies
  • Office 365
  • Office Web Apps
  • People Picker
  • Performance
  • Permissions
  • PowerShell
  • PWA
  • Search
  • Security
  • Security Token Service Application Pool
  • Server Administration
  • SharePoint Administration
  • SharePoint Development
  • SQL
  • Troubleshooting
  • Uncategorized
  • Update
  • User Group Meetings
  • Workflow Manager

Click these links below to redirect to YouTube, accordingly

A few SharePoint Videos on YouTube
Skydiving Adventures
  • Twitter

Copyright © 2023 Another Sharepoint Blog | Slick Blog by Ascendoor | Powered by WordPress.

 

Loading Comments...
 

You must be logged in to post a comment.