Remotely changing time on Windows XP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We are about to stress test 30 odd machines in our UAT environment and need
to be able to change the times on these computers remotely. Is there a way to
do this via a script or through a registry change?
 
Aaron said:
We are about to stress test 30 odd machines in our UAT environment and need
to be able to change the times on these computers remotely. Is there a way to
do this via a script or through a registry change?

If you have a list of your PCs in c:\PCs.txt then you
can do this in a batch file:

@echo off
for /F %%a in (c:\PCs.txt) do psexec \\%%a time 9:53

You can get psexec.exe from www.sysinternals.com.

A better way would be to allow the "Windows Time" service
to run so that each PC synchronises itself automatically to an
external time source. Alternatively you could insert the following
command into your logon script so that each PC synchronises
itself to your server at logon time:

net time \\YourServer /set /yes
 
Aaron said:
We are about to stress test 30 odd machines in our UAT environment and need
to be able to change the times on these computers remotely. Is there a way to
do this via a script or through a registry change?

P.S. Why do you post the same thing twice? Getting
impatient? It wastes peoples' time!
 
Thanks for that - I'm working on trying to get it up and running now. PSexec
is saying that I need to enable the ADMIN$ share on the remote computers and
as far as I'm aware they are up and running - I will work on this though.

As for wasting people's time - I was unable to find my original post by
refreshing or searching and figured that the IE pop-up blocker had interfered
with my post. Hence it got posted twice.
 
Back
Top