I wrote a script that adds scheduled tasks i.e. defrag, clnmgr, etc into Windows XP workstations and they works great using GPO computer configuration that applies to all Student's workstations. I assume SYSTEM account is what creates schedule tasks.
Now, I am trying to keep tab on all workstation by querying a schtasks.exe into schtasks.csv on the server. When I ran the cmd in my workstation, it worked fine as my username, but it would not work when workstations are booted up. I changed permissions on schtasks.csv on server to 'Everyone', allowing them to write to that file (I know it is not safe, I'm trying to troubleshoot why it wouldn't work.) I would appreciate your insight to this problem.
Thanks.
[code:1]
REM *** Reports to the database (CSV file) on server
REM *** PROBLEM: server wouldn't allow LOCAL COMPUTER SYSTEM to record into schtasks.csv
REM if exist \\motchrtsrv02\Netlogon\Log\schtasks.csv schtasks /query /fo csv /nh /v >> \\motchrtsrv02\Netlogon\Log\schtasks.csv
[/code]