Re: Scheduled task, ran interactively ?
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 3 Oct 2007 22:09:57 +0200
"andyjgw" <andyjgw@xxxxxxxxx> wrote in message
news:1191422640.473568.57130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
The command
at 23:00 /interactive c:\tools\UserPrompt.bat
works quite nicely on my WinXP PC.
On a related subject: I suspect that your popularity rating will
take a dip after the first few users have lost their files because
you shut down their machines while they were away from their
desks, perhaps while working late and stepping out for a
quick meal.
.
- Follow-Ups:
- Re: Scheduled task, ran interactively ?
- From: andyjgw
- Re: Scheduled task, ran interactively ?
- References:
- Scheduled task, ran interactively ?
- From: andyjgw
- Scheduled task, ran interactively ?
- Prev by Date: Re: Restore IIS Different Machine
- Next by Date: Re: Security network audit
- Previous by thread: Scheduled task, ran interactively ?
- Next by thread: Re: Scheduled task, ran interactively ?
- Index(es):
Relevant Pages
|