What are the prerequisites to configure the IIS Application pool in the target server to be managed?
Steps
Configuration on IIS Manager
- Make sure the target user in IIS pool is configured correctly.
- IIS Server > Application Pool > Target Application pool > Right click and select Advanced Settings > Generate Process Model Event L > Identity
- Configure with the account that will be used to run this Application pool.

- Set Authentication to Windows Authentication for the Default Website
- Click on Default Website > Authentication > Enable Windows Authentication.
- Right-click Windows Authentication > Click on Providers…. and make sure "Negotiate" is added and move it to the top.

- Set seAppPoolCredentials
-
- Go to Default Web Site > Configuration Editor
- Navigate to System.webserver/Security/authentication/WindowsAuthentication
- Set useAppPoolCredentials=True

OS configuration on the same server
- Configure WMI Control Settings
- Open Computer Management > Services and Applications > Right click WMI Control > Properties > Security tab > MicrosoftIISv2 > Security
- Make sure the account running the IIS Application pool has full permission. Otherwise, we can assign the account to the local administrators group.

- Configuration on Firewall Settings.
- Allow WMI (Windows Management Instrumentation)
- Run Secpol.msc on CPM server > Local Policies > Security Option > User Account Control: Run All administrators in Admin Approval Mode > Disable
Configuration to allow the user to access the website
Perform the below command in the CPM server.
Run CMD in elevated mode
- We will required to use the SetSPN.exe command to map the username to the website.
- SetSPN.exe -l <username> [List]
- SetSPN.exe -s <target Website><username> [add]
- SetSPN.exe -d <target Website><username> [delete]
Target Website : HTTP/<website FQDN>

Configure IIS Application Pool on PVWA
- Enter the target server IIS Application pool name
- Enter the target server address
