daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Nov 8th, 2018 96 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. ### Configurando NTP (Windows) por registro e linha de comando.
  2.  
  3. ##### Podemos adicionar no registro o seguinte comando:
  4.  
  5. ```
  6. REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\DateTime\Servers" /v 0 /t REG_SZ /d "c.ntp.br" /f
  7. ```
  8.  
  9. ##### E logo após "ressincronizar:"
  10.  
  11. ```
  12. w32tm /resync /rediscover
  13. ```
  14.  
  15. ##### Como também podemos criar um .bat para ser executado de hora em hora (não muito viável):  
  16.  
  17. ```
  18. @echo on & @setlocal enableextensions
  19. @echo =========================
  20. @echo Turn off the time service
  21. net stop w32time
  22. @echo ======================================================================
  23. @echo Set the SNTP (Simple Network Time Protocol) source for the time server
  24. w32tm /config /syncfromflags:manual /manualpeerlist:"c.ntp.br"
  25. @echo =============================================
  26. @echo ... and then turn on the time service back on
  27. net start w32time
  28. @echo =============================================
  29. @echo Tell the time sync service to use the changes
  30. w32tm /config /update
  31. @echo =======================================================
  32. @echo Reset the local computer's time against the time server
  33. w32tm /resync /rediscover
  34. @endlocal & @goto :EOF
  35. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top