Update Internet Time using batch script or powershell


hi guys,

is there commands sync internet time specific ip ? (in linux use command "ntpdate x.x.x.x" - x.x.x.x time server ip)

i have time server has ip x.x.x.x

i deploy 10 servers 2008 r2 , config date time server (check synchronize internet time server - default time.windows.com) ip x.x.x.x above

how can obtain using script ?

i have tried w32tm net time seems not worked.

hello,

w32tm should tool. this:

w32tm /config /manualpeerlist:x.x.x.x /syncfromflags:manual /update w32tm /resync 

for additional parameters refer technet article http://technet.microsoft.com/en-us/library/cc773263%28v=ws.10%29.aspx


csaba



Windows Server  >  Setup Deployment



Comments

Popular posts from this blog

directory stack

After enabling Windows Server 2012 R2 DHCP Failover Getting Packet dropped because of Client ID hash mismatch

WMI Repository 4GB limit - Win 2003 Ent Question