![]() Once configured, you can set any Condition if you have to run this scheduled job.file " C:\MyScriptSchedule\Schedule.ps1". Provide a path to your script as the following Add arguments (optional) - It is not optional.Program/script - Here type in “powershell”.Action - As action, select “Start a program”.This is the most important part where most of the users go wrong. Click on the New button to configure the action.One configured, Click on the Actions Tab.You can configure whether you want to run this schedule once or daily or weekly or monthly according to your scenario.You can choose, if you want to run the job with highest privileges.User - You can state under whose user ID, this should run. ![]() Description - Description states why you are running this job.You will see the following dialog box that will pop up.Ĭonfigure the General Tab with the following details.On the right corner, Click on Create Task.It will work the same way as you expect from a timer job. We can achieve the same by using PowerShell script and schedule it using Task Scheduler. It will save your time and effort in creating a timer job as building a PowerShell script is easy. In our project, we went through many scenarios where we did not have time to create a timer job for some basic functions but we needed a schedule to happen without creating timer jobs. Welcome to an article on How to schedule a task to run a PowerShell script using Task Scheduler on our Windows Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |