Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to create a scheduled task that will run once daily on a dedicated machine. The task will run an exe. That exe does a bunch of things, including running automation that manipulates the mouse/kb etc.

Is that possible (on any windows based OS)?

share|improve this question
    
Well since malware can already do this, I'd say YES it is possible. –  mdpc Dec 17 '12 at 21:23

1 Answer 1

up vote 3 down vote accepted

Sure...leave the user that the scheduled task runs as logged in and set the task option to only run when the user is logged in.

I believe you can use schtasks as well: http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357%28v=vs.85%29.aspx using the /IT parameter but again I think it only works if the actual user is logged in that the task runs as.

Other than that, you can use FireDaemon to have an interactive session run a task as a service.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.