Created
January 13, 2022 11:19
-
-
Save grimley517/b18c873829d0bb16858e13cf590ed255 to your computer and use it in GitHub Desktop.
Get User Credentials used for App Pools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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