Auto Syncronize PC time with Internet time server

geezer

Executive Member
Joined
May 12, 2006
Messages
6,113
Reaction score
5,784
Location
Sasolburg
I am looking for a way to automatically syncronize A PC's time with an Internet time server. Before everybody rushes of and calling me a noob, Yes, I know you can tick that option in the Date and Time properties. But, this computer is not always connected to the internet. It is a PC that is used to control a laboratory instrument. It is connected to the network, but not logged in. We can connect this PC to our company's domain by entering a username and password, but we do not want this computer to be connected to the domain all the time due to fears of internet abuse after hours etc. Is there a programme we can make use of to configure the PC to do an update say maybe once a week or so, and only then automaticaly log in with a given username and password? A correct PC time is needed because the data generated are matched to other instruments's data, and an accurate date and time is therefore needed.
 
Na, this is waay to difficult, it would require writing some insane software to do the connecting and then you don't know which method to use to connect with and .. aaaarg!

Why not leave the computer on the network, but run a firewall on the computer that only allows port 13 or port 37 to be open.

Or, enable the option in control panel like you said, and then, manually run:
net time /set
from a command prompt to set the time.

Or, I spoze you could do some kind of batch script that executes after a login, and the last command would be logoff, and that could then be run in scheduled tasks ... hmmmm ... let me look at that option a little closer.

Could you please provide some details as to how the computer connects to the internet?

EDIT: See, if the network has an ADSL router on it somewhere that this computer can communicate with, then Scheduled tasks can be configured to "do a PPPOE log on through the router" and set the time and then "pppoe log off" while the computer is not on the domain, but I need to know "where/what" the internet connection is.
 
Last edited:
You can put this all in a .bat file

goto 1

:1
net use \\computername\IPC$ /USER:domain\uername password
goto 2

:2
net time \\computername /set /y
goto end

:end
 
Top
Sign up to the MyBroadband newsletter
X