Originally Posted by
BigLar
The computer has a static IP and has no entry for a DNS server. It can not (unless it knows the actual IP) announce its' presence on the internet to anyone. I've never received an update from Microsoft, for instance. I talk to it by its' static IP address.
It's
not a real problem. There are a number of ways of getting the desired result, which is to sync up the time on the remote computer (which cannot connect to the NIST server or any other time service) but what I'm looking for is a simple way to run a script/program on the local computer to set the time based on the local time. Not a big deal, as the remote time doesn't drift that much.
I used to do it very easily and I'm surprised it isn't included as a sub-function of
net or somewhere in the Power Shell. At least, I can't find it. I was hoping someone else would know of the way without requiring buying/developing more hardware/software, etc.
A year from now, if the time has drifted by more than a few minutes, I can always log onto it remotely and apply the
net command in reverse. I can also drive my car backwards by sitting in the back seat and connecting ropes to the steering wheel ... I used to be able to do it from the front seat and I was hoping you guys knew how that worked.

What else do you have on your network? You don't need DNS. If there is another device that can host the NTP service on the network, all you need is a default gateway and host file entries should work fine. The device with the NTP server just needs the time you want.
In this thread, we already gave you a few options that are cost free? I assume that you are running a Windows server, if that is the case, it's just a scheduled task with a batch file containing a few lines. No cost at all. Your powershell script would look exactly the same as the required net commands, besides the extension being ps1 versus bat.