I've written a script that allows users to start, stop, or check various services on various environments pertinent to our work. Currently, for IISReset, it checks all of the app pools it controls, ergo starts and stops too.
Is there a way to point to only two or three specific sites or app pools and not touch the others?
The current code I am using is...
& \env\Windows\System32\iisreset.exe /STATUS