I'm working in a MS Windows Domain.
I'm trying to centrally (remotely) start and stop the W32Time service for a certain amount of time (to disable Time Server update e.g for two hours) then remotely change system date and time to allow users with low power (they can't start and stop the service and change time) to do some backdated operations. When the amount of time then finish, I want to start back the W32Time again to allow the auto sync of the system clock.
I've tried this with WMI, but my problem is that when I try to start back the service the time skew is too big and I can't do WMI operations.
Is it possible to do this?
I'm wondering if a solution maybe to put a shell file (that maybe finally deletes itself) on the remote system and then launch it with Admin privileges (using somenthing like PsExec). In that case I don't need to be granted by the DC and the time skew may not be a problem.
Maybe this is a more viable way?