0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

w32time note

Last updated at Posted at 2016-05-11

No triggerd start!

via cmd
sc triggerinfo w32time delete

via powershell
Edit registry...
http://mikefrobbins.com/2015/12/24/use-powershell-to-determine-services-with-a-starttype-of-automatic-or-manual-with-trigger-start/

delete scheduled-jobs

Unregister-ScheduledTask -TaskName SynchronizeTime
This command erase scheduled-task simply.
Disable-ScheduledTask is better ?

query (other ntp server)

w32tm /stripchart /computer:pool.ntp.org /period:1 /dataonly /samples:3  

Tracking ntp.nict.jp [133.243.238.244:123].
The current time is 1/27/2016 10:15:19 PM.
22:15:19, -70.5490635s
22:15:20, -70.5530585s
22:15:21, -70.6554563s
22:15:23, -70.5545221s

ntp setop

w32tm /config /manualpeerlist:"0.amazon.pool.ntp.org,0x9 1.amazon.pool.ntp.org,0x9 2.amazon.pool.ntp.org,0x9 3.amazon.pool.ntp.org,0x9" /syncfromflags:manual /update

regedit


HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient


$item = Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient"

C:\Users\cloudpack$item = Get-ItemProperty "HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient"

$item = gp "HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient"

Set-ItemProperty "HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" -name "SpecialPollInterval" -value "3600" 

script

w32tm /config /manualpeerlist:"0.amazon.pool.ntp.org,0x9 1.amazon.pool.ntp.org,0x9 2.amazon.pool.ntp.org,0x9 3.amazon.pool.ntp.org,0x9" /syncfromflags:manual /update

w32tm /resync
w32tm /resync

Set-ItemProperty "HKLM:\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient" -name "SpecialPollInterval" -value "3600" 

$tm = Get-Service -Name W32Time
$tm.Stop()
$tm.Start()
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?