Author Posts

November 2, 2015 at 8:24 am

Hi all,

I have a question about checking website activity with PowerShell. As part of our Continuous Integration process, I update a QA Test Server with our web application files.
To do this, using PowerShell, I remotely stop IIS, copy files, restart IIS.

The issue is that I don't want to do this if QA is testing on the machine. I'm wondering if there is a way using PowerShell that I can tell if someone is using the web application before I stop IIS. If there is activity on the site/app, I'll send an email notification that file updates are pending.

Any information or points to such, guidance, help is Greatly Appreciated!

Thanks!!!

November 2, 2015 at 10:32 am

What about pausing iis? That would let it finish any requests. When the status goes from Pausing to paused, you can stop it.