Set maximum wait time for the network if a user has a roaming user profile or remote home directory
Définir le temps d’attente maximal pour le réseau si un utilisateur a un profil utilisateur itinérant ou un répertoire d’accueil distant
Explanation
This policy setting controls how long Windows waits for a response from the network before logging on a user without a remote home directory and withou synchronizing roaming user profiles. This policy setting is useful for the cases in which a network might take typically longer to initialize, such as with a wireless network.
Note: Windows doesn't wait for the network if the physical network connection is not available on the computer (if the media is disconnected or the network adapter is not available).
If you enable this policy setting, Windows waits for the network to become available up to the maximum wait time specified in this policy setting. Setting the value to zero causes Windows to proceed without waiting for the network.
If you disable or do not configure this policy setting, Windows waits for the network for a maximum of 30 seconds.
Ce paramètre de stratégie contrôle combien de temps Windows attend une réponse du réseau avant d’ouvrir une session utilisateur sans répertoire d’accueil distant et sans synchroniser les profils utilisateur itinérants. Ce paramètre de stratégie est utile dans les cas où l’initialisation d’un réseau est généralement plus longue, par exemple pour un réseau sans fil.
Remarque : Windows n’attend pas le réseau si la connexion réseau physique n’est pas disponible sur l’ordinateur (si le média est déconnecté ou si la carte réseau n’est pas disponible).
Si vous activez ce paramètre de stratégie, Windows attend que le réseau devienne disponible pendant le temps d’attente maximal spécifié dans ce paramètre de stratégie. Si vous définissez sa valeur à zéro, Windows continue sans attendre le réseau.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows attend le réseau pendant une durée maximale de 30 secondes.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: UserProfiles/WaitForNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Wait for network for maximum (seconds)
Set-ItemProperty -Path $k -Name 'WaitForNetwork' -Value 30 -Type DWord # between 0 and 300Disable
# Disable: UserProfiles/WaitForNetwork
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": UserProfiles/WaitForNetwork
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'WaitForNetwork' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Wait for network for maximum (seconds)Attendre le réseau pendant une durée maximale de (secondes)WaitForNetwork_Seconds | Numeric boxdecimal | WaitForNetwork | REG_DWORD | Required · Min: 0 · Max: 300 · Default (UI): 30 |