Thursday, February 16, 2006

Google: windows 2000 net time command line ntp

This search delivers great results for the Windows 2000 net time command for NTP sync over the Internet & on a LAN.

Windows as an NTP client

With the integrated service "w32time.exe" Windows 2000 makes it possible to function as NTP server or client. To activate this service, the missing parameters have to be entered into the registry and the "time service" has to be started. The "time service" can be found in "administrativ tools - services - windows time". It should be started by choosing startup time "automatic". (One can start and stop the time service with the command line "net start w32time" and "net stop w32time".) The necessary parameters for this service can be found in the registry at the following location: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters". A documentation of the parameters can be found at Microsoft. To run Windows 2000 as NTP client, the IP address of the time server is necessary (parameter: "ntpserver" or command line "net time /setsntp[:NTP-Serverliste]"). The synchronisation period standard is every 8 hours (parameter: "Period" = "SpecialSkew"). This period can also be changed: For example to synchronise 24 times a day, the parameter "Period" must have "REG_DWORD" with the decimal entry 24. Windows 2000 also can be run as NTP server: The registry parameter "LocalNTP" needs to be changed from "0" to "1". After restarting the service, any NTP/SNTP client can ask the Windows 2000 server for time. To check the "time service" the tool "w32tm.exe" can be used while the time service is disabled. Help can be found by using "w32tm /?".

About.com Windows 2000 net time command: NTP sync

net time \\computername /set /y

Without the "/set /y," you will simply see the time that the other machine has. Without the "/y" you will be prompted for whether or not you want to actually change the local time.

Installing Windows 2000

I'm helping JB install clean copies of Windows 2K. I used the Win2K/SP4 install CD, after I booted into Knoppix and scrubbed the HD with QtParted. I worked on his Dell GX 400 Optiplex, which has an 18 GB HD. I installed Win2K on a 14 GB FAT32 partition, with the idea being that we can set up a Linux installation on the remaining 4 - 5 GB space, with a data partition & maybe Knoppix on the disk. Then the Linux ext2 (or 3) volumes are invisible when you boot into Windows. I think we should install Kerio, and download the Firefox installer, too. The thing is, any computer behind JB's firewall/router (a Netgear Wireless G -- very nice installer) is still vulnerable because one of the three Windows Boxen is still owned by punkware. So, I hardend the one in the basement, that connects via WEP Wireless B. So, the GX 400 is downloading the second round of critical Windows updates, mostly small SP4 level patches ... and a restart ... and some Olympics. We have to work on the computers when the extra sensitive male free skaters come on! So, one more pass at Windows Update: now we install MSIE 6. The plan now is to copy the partition before we proceed much further. But first, two rounds of Express updates; plus Windows Media Player 9 installed over the wire. Finally, we need to download 1 hardware update. What was that net time command?