Get-ItemProperty HKLM:\System\CurrentControlSet\services\W32Time
Get-ItemProperty HKLM:\System\CurrentControlSet\services\W32Time\Parameters
Get-ItemProperty HKLM:\System\CurrentControlSet\services\W32Time\Config
Set-ItemProperty -Name AnnounceFlags -Value 5 -Path HKLM:\System\CurrentControlSet\services\W32Time\Config
Set-ItemProperty -Name Type -Value NTP -Path HKLM:\System\CurrentControlSet\services\W32Time\Parameters
Set-ItemProperty -Name NTPServer -Value "ntp02.oal.ul.pt,0x1 ntp04.oal.ul.pt,0x1 pt.pool.ntp.org,0x1 .europe.pool.ntp.org,0x1 europe.pool.ntp.org,0x1" -Path HKLM:\System\CurrentControlSet\services\W32Time\Parameters
Get-Service w32time
Get-Service w32time | Restart-Service
ou
Get-Service w32time | Stop-Service
Get-Service w32time | Start-Service
w32tm /query /source
w32tm /query /status
w32tm /resync /rediscover returns
0 comentários :
Enviar um comentário