Ouvrir dans l'explorateur

Activer le client NTP Windows

Enable Windows NTP Client

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Service de temps Windows › Fournisseurs de temps EN : Computer Configuration › Policies › Administrative Templates › System › Windows Time Service › Time Providers
Pris en charge sur
Au minimum Windows Server 2003 ou Windows XP Professionnel EN : At least Windows Server 2003 operating systems or Windows XP Professional
Fichier ADMX
W32Time.admx
Nom interne
W32Time/W32TIME_POLICY_ENABLE_NTPCLIENT

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie spécifie si le client NTP Windows est activé.

L’activation du client NTP Windows permet à votre ordinateur de synchroniser son horloge avec d’autres serveurs NTP. Vous pouvez désactiver ce service si vous décidez d’utiliser un fournisseur de temps tiers.

Si vous activez ce paramètre de stratégie, vous pouvez définir l’horloge de l’ordinateur local de sorte qu’elle synchronise l’heure avec les serveurs NTP.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’horloge de l’ordinateur local ne synchronise pas l’heure avec les serveurs NTP.

This policy setting specifies whether the Windows NTP Client is enabled.

Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers. You might want to disable this service if you decide to use a third-party time provider.

If you enable this policy setting, you can set the local computer clock to synchronize time with NTP servers.

If you disable or do not configure this policy setting, the local computer clock does not synchronize time with NTP servers.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\W32time\TimeProviders\NtpClient
Nom de la valeur
Enabled
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : W32Time/W32TIME_POLICY_ENABLE_NTPCLIENT
$k = 'HKLM:\Software\Policies\Microsoft\W32time\TimeProviders\NtpClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enabled' -Value 1 -Type DWord

Désactiver

# Désactiver : W32Time/W32TIME_POLICY_ENABLE_NTPCLIENT
$k = 'HKLM:\Software\Policies\Microsoft\W32time\TimeProviders\NtpClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enabled' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : W32Time/W32TIME_POLICY_ENABLE_NTPCLIENT
$k = 'HKLM:\Software\Policies\Microsoft\W32time\TimeProviders\NtpClient'
Remove-ItemProperty -Path $k -Name 'Enabled' -ErrorAction SilentlyContinue

Disponibilité