Task Scheduler - How to move the Task Scheduler log SchedLgU.Txt to different folder
What is the task scheduler?
The Task Scheduler service allows you to perform automated tasks on a chosen computer. With this service you can schedule any batch file, program, or document to run at a time that is convenient for you or when a specific event occurs. Task Scheduler monitors the time or event criteria you choose and then executes the task when those criteria are met.
With the Task Scheduler you can:
- Create tasks.
- Schedule a task to run at a specific time or when a specific event occurs.
- Change the schedule for a task.
- Customize how tasks run.
- Stop a scheduled task.
There is a log file SchedLgU.Txt that captures the activity of Scheduled Tasks. By default the log file is located here: %SystemRoot%\Tasks\SchedLgU.Txt or on most systems : C:\Windows\Tasks\SchedLgU.Txt.
How to move the Task Scheduler log SchedLgU.Txt to different folder
If you need to move the task schdeuler log to different folder then here are the steps:
- Click Start, Run and type Regedit.exe
- Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SchedulingAgent
- Backup the SchedulingAgent key to a safe location.
- Open the the LogPath value.
- Change the path to the new target folder.
- Close Regedit
- Restart the Task Scheduler service by completing the following
- Start -> Run -> Type services.msc
- Locate the task Scheduler service in the list -> right click and select restart.
- move the SchedLgU.txt file from %Systemroot%\tasks to the new folder.
Filed under: Task Scheduler


Leave a Reply