Try with this:
Run the following command to define a trigger event that suits your environment. In this example, the command determines whether an IP address is given to a host, and then it starts or stops the service.
sc triggerinfo w32time start/networkon stop/networkoff
where w32Time is your service name
or try this
https://support.microsoft.com/en-us/kb/922918