SCHTasks - Description:
Enables an administrator to create, delete, query, change, run and
end scheduled tasks on a local or remote system. Replaces AT.exe.
/Create Creates a new scheduled task.
/RU username Specifies the user account (user
context) under which the task runs.
For the system account, valid values
are "", "NT AUTHORITY\SYSTEM" or
"SYSTEM".
/SC schedule Specifies the schedule frequency.
Valid schedule types: MINUTE, HOURLY,
DAILY, WEEKLY, MONTHLY, ONCE,
ONSTART, ONLOGON, ONIDLE.
/ST starttime Specifies the time to run the task.
The time format is HH:MM:SS (24 hour
time) for example, 14:30:00 for
2:30 PM.
/TN taskname Specifies a name which uniquely
identifies this scheduled task.
/TR taskrun Specifies the path and file name of
the program to be run by this
scheduled task.
Example: C:\windows\system32\calc.e
cacls Displays or modifies access control lists (ACLs) of files
/E Edit ACL instead of replacing it.
/P user:perm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
sirbounty;
I hope you don't mind me elaborating why this would work, but catch a man a fish and he eats for a day, teach him HOW to fish and you feed him for life.
Main Topics
Browse All Topics





by: sirbountyPosted on 2005-10-10 at 03:22:03ID: 15051145
Nothing 'specific' natively, but you could make this work, I'm sure...
Start->Run->CMD <Enter>
SCHTasks /Create /RU System /SC Daily /ST 23:00:00 /TN AppOff /TR "cacls "C:\Program Files\Path To App\App.exe" /E /P UserName:N" <Enter>
SCHTasks /Create /RU System /SC Daily /ST 08:00:00 /TN AppOff /TR "cacls "C:\Program Files\Path To App\App.exe" /E /P UserName:F" <Enter>
This will 'allow' access at 8am every day - and disallow it at 11pm...