Auto Run script

Hi all

Is it possible and if so how could I implement. We manage a number of devices used in customer accommodation, the problem is sometimes they fiddle and a number have been reset.
It would be nice if there was a way to run a restore if a reset is detected.


Any advise would be great thanks.