Skip to content

Instantly share code, notes, and snippets.

@grimley517
Created January 13, 2022 11:19
Show Gist options
  • Save grimley517/b18c873829d0bb16858e13cf590ed255 to your computer and use it in GitHub Desktop.
Save grimley517/b18c873829d0bb16858e13cf590ed255 to your computer and use it in GitHub Desktop.
Get User Credentials used for App Pools
$appPools = Get-WebConfiguration -Filter '/system.applicationHost/applicationPools/add'
foreach($appPool in $appPools)
{
Write-Host $appPool.Name " => userName:"$appPool.ProcessModel.UserName" => Password "$appPool.ProcessModel.Password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment