Task Scheduler using AT
I have Windows 7 - I open a command prompt and type in "AT 12:30 "C:\temp\runthis.exe"
The response? "Access is denied."
?????? I am an administrator!!
So, all my scripts dealing with scheduling tasks are now not working?? Why can I not schedule a task on my own computer??
How do I script a scheduled task on my own computer now?
April 1st, 2010 7:34pm
Hm... Did you run a normal command prompt, or an Administrator ditto? I heard there were supposed to be two different CLIs.
Free Windows Admin Tool Kit Click here and download it now
April 1st, 2010 8:33pm
In Windows Vista and Windows 7, even administrators run in a limited-mode. You may want to try typing "cmd" in the search bar the go up to the icon in the Start Menu under 'Programs", right-click and choose 'Run as Administrator'. Get used to opening the command-line this way when working with system-level tasks.
BTW, AT is still valid in Windows Vista and 7.
April 2nd, 2010 3:13am
In Windows Vista and Windows 7, even administrators run in a limited-mode. You may want to try typing "cmd" in the search bar then go up to the icon in the Start Menu under 'Programs", right-click and choose 'Run as Administrator'. Get used to opening the command-line this way when working with system-level tasks.
BTW, AT is still valid in Windows Vista and 7.
Free Windows Admin Tool Kit Click here and download it now
April 2nd, 2010 3:13am
schtasks is the answer... just got to learn new commands...
April 2nd, 2010 4:59pm
You can't really "Right Click and choose 'Run as Administrator'" in a script.
I'd be interested in a way to elevate the privileges from a script in order to use AT because, quite frankly, Schtasks is a LOT more complicated (more powerful too, but, eh!?).
Why it allows Schtasks to work and not AT, I'm not sure - I'd like to know that as well. Maybe AT is on the road to being unsupported?
Free Windows Admin Tool Kit Click here and download it now
April 5th, 2010 3:45pm
Could you do something with it by changing the permissions for C:\Windows\System32\at.exe ? Perhaps give Full Control to non-Administrator accounts?Rich
Why can't I be different and original like everybody else?
- Vivian Stanshal
April 5th, 2010 10:37pm