ܼ

#contetns

Windows Server 2016λƱꤹ硣
ɥᥤ󥳥ȥȤƻѤƤ륵Фˤơ륯å(Local CMOS Clock)򻲾ȤƤȻΥˤ͡Զ礬ȯ뤳Ȥ顢NTPФ򻲾Ȥѹ롣

PowerShellѤԤ

֤γǧ

PowerShellˤưʲޥ¹Ԥ֤ǧ롣

PS C:\Users\administrator> (Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\Parameters").GetValue("Type")
NT5DS

NT5DSϥ륯å򻲾ȤƤ롣
NTP򻲾ȤƤˤϰʲͤˤʤ롣

 PS C:\Users\administrator> (Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\Parameters").GetValue("Type")
NTP

Ʊˡѹ

ʲޥˤơNTP򻲾Ȥѹ롣

 PS C:\Users\administrator> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\Parameters" -Name "Type" -Value "NTP"

ưˤƻƱ

  • ֤γǧ
    PS C:\Users\administrator> w32tm /query /source
    
    [Local CMOS Clock]
  • NTPꤹ
    PS C:\Users\administrator> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\Parameters" -Name "NtpServer" -Value "ntp.nict.jp,0x8"
  • Windows Time ӥƵư
    PS C:\Users\administrator> Restart-Service w32Time
  • ưƱԤ
    PS C:\Users\administrator> w32tm /resync
    Ʊޥɤ ԥ塼Ƥޤ
    ޥɤλޤ
  • ֤γǧ
    PS C:\Users\administrator> w32tm /query /source
    
    ntp.nict.jp,0x8

    PS C:\Users\administrator> w32tm /query /status
    
    󥸥: 0 (ٹʤ)
    : 2 (󼡻 - (S)NTP Ʊ)
    : -6 (ƥåȤ 15.625ms)
    롼ٱ: 0.0076856s
    롼ʬ: 136.9177085s
     ID: 0x85F3EEF3 ( IP:  133.243.238.243)
    ǽƱ: 2020/01/09 1:58:26
    : ntp.nict.jp,0x8
    ݡ󥰴ֳ: 6 (64s)

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2020-01-09 () 02:15:21 (185d)