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

Comments

Please log in to comment

Answers

1

%RANDOM% generates a random number between 0 and 32767.

See http://ss64.com/nt/syntax-random.html for examples.


Answered 10/02/2015 by: mduiker
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity