Skip to content

Instantly share code, notes, and snippets.

@kmondesir
Created August 24, 2022 02:20
Show Gist options
  • Save kmondesir/85b5aad7a0bc9b82860b9299cd1236aa to your computer and use it in GitHub Desktop.
Save kmondesir/85b5aad7a0bc9b82860b9299cd1236aa to your computer and use it in GitHub Desktop.
Sets the Identity of Application Pool
Import-Module WebAdministration
# Please set password as an environment variable on the server
Set-ItemProperty IIS:\AppPools\$app -name processModel -value @{userName=$username;password=$password}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment