Scheduled task run a PowerShell script

To run a PowerShell script using a scheduled task in Windows, you must set the Action to run a Program and configure it as below:

1  Program / Script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
2 Add arguments (optional) : -file folder_and_file.ps1

Romain Drouche

Romain Drouche

System Architect | MCSE: Core Infrastructure

An IT infrastructure expert with over 15 years of hands-on experience. Currently serving as a Systems and Network Project Manager and Information Systems Security (ISS) Lead, I leverage my expertise to ensure the reliability and security of technological environments.

GHinM▶