Reset username and password of IIS Server Application Pool
DRANK

CodeProjectThere are chances where we need to get Application Pools user name and password for further modifications such as refreshing account or changing password for the users.Below PowerShell Script will loop through all the App Pools  (excluding defaults) and will reset the same user and password again. Scripts can be easily customized to use to update password when a change occur.# Check if appcmd.exe exists in default path if (Test-Path ("c:\windows\system32\inetsrv\appcmd.exe")) { # Set AppCmd.exe path in variable for further usage. $AppCmdPath = 'c:\windows\system32\inetsrv\appcmd.exe' # Get list of application pools & $AppCmdPath list apppools /text:name ForEach-Object { #Get application pool name $PoolName = $_ #Exclude inbuild Application Pools if( $PoolName -eq "DefaultAppPool" -Or $PoolName -eq "Classic .NET AppPool" -Or $PoolName -eq ".NET v2.0 Classic…

codeproject.com
Related Topics: IIS