Scheduled Task Lab - Zacham17/my-tech-journal GitHub Wiki
Brief Summary
In this lab, I used the Task Scheduler program in Windows to schedule a task to run my PowerShell script to ping systems on my network.
How To Create a Scheduled Task
Here are steps for how to schedule a task in windows using the task scheduler program.
- Open Task Scheduler (This can be done by using the search bar)
- Click on a folder in the left pane and then click "create task" in the right pane. (You can create a folder if you'd like)
- You can then configure the the scheduled task using the tabs in the window that appears. The tab are:
- "General": Contains general configuration settings such as name, and what user it runs under.
- "Triggers": Contains settings for when the event will occur and how often it will occur.
- "Actions": Contains settings to configure what the task will do, such as run a program, or send an email.
- "Conditions": Contains settings for how the scheduled task will run based on certain conditions such as if the user is logged in or if the computer is on battery power vs. AC power.
- "Settings": Contains additional settings that affect the behavior of the task.
- For this lab particularly, in the Triggers tab, I added a trigger for the task to repeat every five minutes after being set up.
- In the General Tab, I gave the task a name and set it to have the highest privileges.
- In the Actions Tab, I set the task to run the PowerShell script to ping the IP addresses in my network.
- I didn't configure any settings in the Conditions or Settings tabs.
- Once you finish configuring the settings, you can click "OK" in the task creation window and the task will be performed according to how you set it up.