Hello
I am trying to get the processid for a given worker process within webadministration, but it seems that after recycle the info is not updating with new id,handles, start time, etc, it keeps only the id from old worker process:
PS C:\> Import-Module WebAdministration PS C:\> cd iis: PS IIS:\> ls IIS:\AppPools\test\WorkerProcesses Process State Handles Start Time Id -------- ----- ------- ---------- 2072 Running 146 8/14/2015 10:58:48 AM PS IIS:\> Restart-WebAppPool test PS IIS:\> ls IIS:\AppPools\test\WorkerProcesses Process State Handles Start Time Id -------- ----- ------- ---------- 2072 Running PS C:\Windows\system32\inetsrv> ./appcmd list wp WP "2168" (applicationPool:test)
I have tested on both IIS 7.5 and IIS 8.5 and the behavior is the same.
looks like this is a bug, is anyone able to replicate it ?
thank you