Schedule task creation with randomized time
hi
I need to create a schedule task with xml file in randomized time.
I have tried the below cmd lines and it is working fine but I need to change the trigger time to randomize time.
when I deploy this cmd lines to 50 machines the trigger time is set to 10a.m on all machines but I need a random/different time on other machines. so what switches do I need to use for that?
schtasks.exe /create /tn "%XXX%" /XML "Config.xml" /f
any help should be appreciated.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
mduiker
9 years ago
%RANDOM% generates a random number between 0 and 32767.
See http://ss64.com/nt/syntax-random.html for examples.