Last active
August 29, 2024 18:13
-
-
Save tcartwright/5ec46925755a837061379f0a29826440 to your computer and use it in GitHub Desktop.
POWERSHELL: Get W3WP ProcessId for specific app pool name
This file contains 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
Get-WmiObject Win32_Process -Filter "name = 'w3wp.exe'" | | |
Where-Object {$_.CommandLine -imatch "appPoolName"} | | |
Select-Object ProcessId, Name, CommandLine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment