Schedule the Script with Task Scheduler in Windows 11

Configurare noua (How To)

Situatie

Solutie

Your script is ready. You’ll now schedule it with Task Scheduler so it runs at the specified interval, automatically clearing your PC’s temporary files. To do that, open Windows Search (press Windows+S), type Task Scheduler, and launch the utility.

In Task Scheduler’s right sidebar, click “Create Basic Task.” Choose the “Name” field and type something like Clear Temporary Files. Then, select “Next”

"Name" and "Next" highlighted on the "Create Basic Task Wizard" window.

Select how often you want to run your script. To clear the temporary files every day, select “Daily.” Then, click “Next”

"Daily" and "Next" highlighted on the "Create Basic Task Wizard" window.

Choose the “Start” field and select the date when the task should start occurring. Specify the time the task should run. Then, click “Next”

"Start" and "Next" highlighted on the "Create Basic Task Wizard" window.

Choose “Start a Program” and select “Next.” Click the “Program/Script” field and type the full path to the script you created earlier. Then, click “Next”

"Program/Script" and "Next" highlighted on the "Create Basic Task Wizard" window.

On the final screen, enable the “Open the Properties Dialog For This Task When I click Finish” option. Then, click “Finish.” On the open window, at the bottom, turn on the “Run With Highest Privileges” option. Then, click “OK”.

"Run With Highest Privileges" and "OK" highlighted on a task's "Properties" window.

From now on, Task Scheduler will automatically run your script at the specified time, clearing temporary files. If you want to turn off the functionality anytime, right-click your task in Task Scheduler and choose “Disable. To remove the task for good, right-click it and choose “Delete”.

Tip solutie

Permanent

Voteaza

(2 din 5 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?