I need to be able to detect when no users are using a particular web app so that I can do some maintenance on the server. I do not want to log in to the server and manually do the work. I have a couple of services running and I am not adverse to writing another one or something scheduled or whatever but I don't want to write anything in the web app itself. This solution needs to stand alone on the server (Windows 7). I started looking at this namespace - Microsoft.Web.Administration but I am not sure if this is the correct starting place.