Get SharePoint Farm Account Password

Published by

on

The SharePoint Farm Account is a privileged account with extensive access to the SharePoint environment. If you find yourself in a situation where you need to retrieve the SharePoint Farm Account password, PowerShell can come to your rescue. In this blog post, we will explore a script to retrieve the SharePoint Farm Account password using PowerShell.

  1. Run SharePoint Management Shell or IIS as Administrator :
Import-Module WebAdministration
 
#Get Central Admin App Pool
$SPPool = Get-ChildItem -Path IIS:\AppPools\ | Where { $_.Name -eq "SharePoint Central Administration v4" }
 
$SPPool.ProcessModel.UserName
$SPPool.ProcessModel.Password

That’s it! Now, you have a Farm Admin password!

Leave a comment