Systemzeit stellen mit net time
Ich habe ein Script, mit dem man eigentlich die Systemzeit mit einem Zeitserver aus dem Internes synchronisiren können sollte:
Code:
Aber leider tut sich da nichts. Nach der Abarbeitung meldet Windows sogar, dass der Befehl erfolgreich ausgeführt wurde. Dem ist aber nicht so. Ich führe das Script auch al Admin aus. an fehlenden Rechten kann es also nicht liegen.
net time /setsntp:ptbtime1.ptb.de
w32tm -once |
Re: Systemzeit stellen mit net time
schon mal versucht einen anderen Timeserver anzugeben? gleiches Problem?
Zitat:
|
Re: Systemzeit stellen mit net time
Ich habe jetzt das gefunden im Internet:
Code:
Da bekomm eich die fehlermledung bei w23tm:
net time /setsntp:ptbtime1.ptb.de
w32tm /resync Zitat:
Zitat:
|
Re: Systemzeit stellen mit net time
läuft der Windows Time Service? (W32Time)
kanns hier nicht testen: access denied... Zitat:
|
Re: Systemzeit stellen mit net time
Ja der läuft mittlerweile. Jetzt bekomm eich auch die Fehlermeldung:
Zitat:
- ntp1.ptb.de - ntps1-0.cs.tu-berlin.de - ntpserv.fh-magdeburg.de - ptbtime1.ptb.de Das kann dochnicht sein, das alle down sind. |
Re: Systemzeit stellen mit net time
hast du ne firewall die die anfragen blocken könnte? weiss jetzt nicht auf welchen ports diese time server miteinander reden..
Zitat:
|
Re: Systemzeit stellen mit net time
Ja, einen Fiewall habe ich im Router. Aber mit dem Dialog der über die Uhr zu erreichen ist ging. Ihmusste nur erst das Datum korrigieren, dann konnte er auch die Zeit abgleichen.
|
Re: Systemzeit stellen mit net time
Zitat:
When a client workstation (i.e., a Windows 2000 Professional—Win2K Pro—machine) boots, it contacts a domain controller for authentication. When the two computers exchange authentication packets, the client adjusts its local time based on the target (i.e., the domain controller's) time. If the target time is ahead of local (i.e., the client's) time by less than 2 minutes, the client immediately adjusts its time to match the target time. If the target time is behind the local time by less than 2 minutes, the client slows its clock over a period of 20 minutes until the two times are in synch. If the local time is off by more than 2 minutes, the client immediately sets its time to match the target time. . . . auch noch interessant zu wissen (siehe fetter Teil) |
Re: Systemzeit stellen mit net time
Zitat:
Port 123 würd ich mal testweise auf der Firewall freischalten... |
Re: Systemzeit stellen mit net time
Ich habe den Sinus 1054 DSL WLan Router. Da kann ich nur Ports sperren aber anscheinend nicht freigeben. UDP Ports sind, wie es aussieht, nicht gesperrt.
|
Re: Systemzeit stellen mit net time
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:08 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz