Hello,
i have following problem:
I want to run a job on every server to change a specific setting from a scheduled windows task (an argument in the execute command).
This argument hast to be a random number between 1 and 30. The code is the following:
set /a num=%random% %%30
schtasks /change /tn "NAME_OF_THE_TASK" /tr "c:\PATH_TO_CMD_FROM_TASK.cmd %num%"
The script is working fine, but only on a single server. If i run that job on a number of servers, they all have the same random number in the windows task.
Does anyone know how to fix this?
Is it possible to configure a job, that handles every server after another?
Greetings,