locked
Creating a scheduled task with custom date and times for multiple servers RRS feed

  • Question

  • Hello guys,

    I have the following problem: I want to create a scheduled task for windows updates which will execute a powershell script but I need to create the task on multiple servers with different times and dates. This means for example:

    Server1, FRI, 23:30

    Server2, SAT, 00:10

    Server3, SAT, 01:00

    The task will run every week to check if there is a new updates, and installs them. I found a script and it works. The problem is how to set in the JobTrigger to check in the list of servers and pickup the date and time specific for every each server. I guess in the list, I should change the date to 1,2,3,4,5,6 to represent the days of the week.

    Thanks in advance.

    Monday, February 3, 2020 11:04 AM

All replies

  • Put the data into an array and loop through it applying the value for each system.


    \_(ツ)_/

    Monday, February 3, 2020 11:17 AM