Click here to get back home

Schedule a task

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Schedule a task lsoncini 12-19-2005
Posted by lsoncini on December 19, 2005, 9:56 am
Please log in for more thread options
Hy everybody,
I'm try to create a scheduled task under a normal user (not
Administrator) on windows 2000 or 2003.

I have created a user, I have added to the "Backup Operators" group.
I have checked the Tasks Scheduler service who run under LocalSystem
and I have activated the flags "interact with desktop".

I have modified the permission of the task and added the Read and
execute permission to my user.

If I make a login on the server machine with the new created user, the
task (a bat file) run correctly.

But when the system run it I recieve the error Access denied (in the
log scheduler log)

Sorry for my english and thanks for any idea

Lorenzo Soncini


Posted by Jon Phipps on December 19, 2005, 1:12 pm
Please log in for more thread options
what are you trying to do with the task?? If it involves cleaning caches
from any one but you then it will have to run under admin premissions. You
may find that other tasks require administrator permissions in order to run
right.

Jon
> Hy everybody,
> I'm try to create a scheduled task under a normal user (not
> Administrator) on windows 2000 or 2003.
>
> I have created a user, I have added to the "Backup Operators" group.
> I have checked the Tasks Scheduler service who run under LocalSystem
> and I have activated the flags "interact with desktop".
>
> I have modified the permission of the task and added the Read and
> execute permission to my user.
>
> If I make a login on the server machine with the new created user, the
> task (a bat file) run correctly.
>
> But when the system run it I recieve the error Access denied (in the
> log scheduler log)
>
> Sorry for my english and thanks for any idea
>
> Lorenzo Soncini
>



Posted by Paul Adare on December 19, 2005, 1:31 pm
Please log in for more thread options
the microsoft.public.windows.server.security news group,

> If I make a login on the server machine with the new created user, the
> task (a bat file) run correctly.
>
> But when the system run it I recieve the error Access denied (in the
> log scheduler log)
>
> Sorry for my english and thanks for any idea
>

Check the permissions on cmd.exe

--
Paul Adare
MVP - Windows - Virtual Machine
http://www.identit.ca/blogs/paul/
"The English language, complete with irony, satire, and sarcasm, has
survived for centuries without smileys. Only the new crop of modern
computer geeks finds it impossible to detect a joke that is not clearly
labeled as such."
Ray Shea

Posted by Lorenzo Soncini on December 23, 2005, 5:00 am
Please log in for more thread options
I have make some other test.
I need schedule a BAT file who:
1. map network drive
2. backup a sybase database
3. clear the network drive mapped ad point 1

the bat is
NET USE ...
DBBACKUP...
NET USE ... /DELETE /Y

If I schedule single commad all work fine. If I schedule a BAT doesn't work.

I have tryed with CMD /C MYBAT.BAT but the problem is the same

Thanks
Lorenzo

> Hy everybody,
> I'm try to create a scheduled task under a normal user (not
> Administrator) on windows 2000 or 2003.
>
> I have created a user, I have added to the "Backup Operators" group.
> I have checked the Tasks Scheduler service who run under LocalSystem
> and I have activated the flags "interact with desktop".
>
> I have modified the permission of the task and added the Read and
> execute permission to my user.
>
> If I make a login on the server machine with the new created user, the
> task (a bat file) run correctly.
>
> But when the system run it I recieve the error Access denied (in the
> log scheduler log)
>
> Sorry for my english and thanks for any idea
>
> Lorenzo Soncini
>



Similar ThreadsPosted
scheduled task June 14, 2007, 9:26 am
set up a scheduled task on windows 2003 September 14, 2006, 3:30 am
Users tab in Task Manager on Windows 2003 November 10, 2005, 12:28 pm
scheduled task cannot open network connection April 5, 2006, 11:55 am
Granting Rights to Processes in Task Manager May 3, 2006, 8:15 am
Is it secure to define a password in a scheduled task ? May 29, 2008, 5:29 am
start/stop service as user from task scheduler April 3, 2006, 11:25 am
Allow power users to "Show Processes From All Users" in Task Manager May 25, 2007, 6:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap