Question: How can I schedule a Powershell Script with Windows Task Scheduler? I’d like to execute the Powershell Script once a day . The Powershell Script will be in a batch file, along with other Powershell Scripts
Answer: Executing a Windows batch file with Powershell Scripts is a straightforward process.
Before you set up the Task Scheduler , check you can execute the Windows batch with the included Powershell script and get the expected result. Attempt to complete this step with the relevant permissions.This step allows you to confirm the batch file and scripts are working as expected.
- Open Windows task scheduler
- Create new task
- In the process of creating a new task , use the Actions tab to add the details of the batch file you’d like to execute.