Link to home
Start Free TrialLog in
Avatar of V4705
V4705Flag for United States of America

asked on

How to run PowerShell scripts with arguments in Task Scheduler ?

I have a .ps1 script with arguments (means I run it under powershell: ./script.ps1 -timeframe 100 -filename c:/file -silent).

My question is, how can I create a scheduled task to run this script, or a .bat file to run this script, and to be able to schedule the .bat file...

Or actually any other suggestions how to schedule this script it would be great, I'm just not familiar with PowerShell yet.

Avatar of Brendan M
Brendan M
Flag of Australia image

Avatar of Aard Vark
Aard Vark
Flag of Australia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial