Open in the explorer

Specify idle Timeout

Spécifier un délai d’inactivité

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Remote Shell FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Environnement distant Windows
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
WindowsRemoteShell.admx
Internal name
WindowsRemoteShell/IdleTimeout

Explanation

This policy setting configures the maximum time in milliseconds remote shell will stay open without any user activity until it is automatically deleted.

Any value from 0 to 0x7FFFFFFF can be set. A minimum of 60000 milliseconds (1 minute) is used for smaller values.

If you enable this policy setting, the server will wait for the specified amount of time since the last received message from the client before terminating the open shell.

If you do not configure or disable this policy setting, the default value of 900000 or 15 min will be used.

French text from Windows 11 26H2

Ce paramètre de stratégie configure la durée maximale (en millisecondes) pendant laquelle l’environnement distant reste ouvert sans aucune activité des utilisateurs avant d’être automatiquement fermé.

N’importe quelle valeur entre 0 et 0x7FFFFFFF peut être définie, où 0 indique un délai infini. Une durée minimale de 60 000 millisecondes (1 minute) est définie pour les valeurs plus petites.

Si vous activez ce paramètre de stratégie, le serveur attend la durée spécifiée depuis le dernier message reçu de la part du client avant de fermer l’environnement ouvert.

Si vous désactivez ce paramètre ou ne le configurez pas, la valeur par défaut 900000 ou 15 minutes est utilisée.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS
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: WindowsRemoteShell/IdleTimeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# IdleTimeout
Set-ItemProperty -Path $k -Name 'IdleTimeout' -Value 900000 -Type DWord  # between 0 and 2147483647

Disable

# Disable: WindowsRemoteShell/IdleTimeout
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsRemoteShell/IdleTimeout
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS'
Remove-ItemProperty -Path $k -Name 'IdleTimeout' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
IdleTimeoutIdleTimeoutNumeric boxdecimalIdleTimeoutREG_DWORD
Min: 0 · Max: 2147483647 · Default (UI): 900000

Availability