I want to run iisstate in a mode that waits for a crash before dumping debugging information to a file. If I do this, though, I need to make sure it won't get stopped prematurely, as according to iisfaq.com, since it is invasive, stopping iisstate will stop the iis process it's attached to. I'm worried that if I run it under a remote desktop session, a coworker might log into the remote desktop session, and then log out rather than simply exit out of the remote desktop session, and inadvertently terminate the process.
If I were using linux, I would use screen, and detach it there. I think it would be less likely for someone to accidentally reattach to a screen session and then terminate it than it would for someone to log into a remote desktop session and then log out.
I could try running it under screen in cygwin, but does anyone know if there a way to run a command in a detached console session that's built into windows?