Guest andyjgw Posted October 3, 2007 Posted October 3, 2007 Hi Here's what I'm trying to do: Create a scheduled task that will be installed via group policy as a computer startup script, that will run at a certain time a day and interact with the currently logged on user. The task creation and such works fine, but I'm stuck in that the task runs with local SYSTEM privileges and thus the user never sees the interface (actually, an HTA html application pop up). I've tried messing around with /U and /RU switches with "schtasks / create" to no avail. If I specify the user, then it prompts for that user's password - and the problem with that anyway is that if User A puts in their password, but User B happens to be the one logged on when the task runs, then they won't get anything. IIRC, the old "AT" command had a "/interactive" switch, which would work great. But that doesn't seem to be in the schtasks on my machine. Is there not some option to create the task as system and have it interact with whoever is logged on? It doesn't need to impersonate them or anything (and I would prefer it didn't - as the outcome is that if the user doesn't respond to the interactive prompt, then the SYSTEM account will shut the machine down for them). Clients are Windows XP, mostly SP2, if that helps. We have most MS tools available here as MSDN subscribers in case a simple .cmd/.vbs etc won't do. Thanks for any help, it would be much appreciated. AW
Recommended Posts