Turn off Fair Share CPU Scheduling
Désactiver la planification de répartition de charge équilibrée du temps processeur
Explanation
Fair Share CPU Scheduling dynamically distributes processor time across all Remote Desktop Services sessions on the same RD Session Host server, based on the number of sessions and the demand for processor time within each session.
If you enable this policy setting, Fair Share CPU Scheduling is turned off.
If you disable or do not configure this policy setting, Fair Share CPU Scheduling is turned on.
La planification de la répartition de charge équilibrée du temps processeur répartit de façon dynamique le temps processeur entre toutes les sessions des services Bureau à distance sur le même serveur d’hôte de session Bureau à distance, en fonction du nombre de sessions et de la demande en temps processeur de chaque session.
Si vous activez ce paramètre de stratégie, la planification de la répartition de charge équilibrée du temps processeur est désactivée.
Si vous désactivez ce paramètre ou ne le configurez pas, la planification de la répartition de charge équilibrée du temps processeur est activée.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Session Manager\Quota System- Value name
EnableCpuQuota
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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: terminalserver-server/TS_ENABLE_DFSS
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Session Manager\Quota System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCpuQuota' -Value 0 -Type DWordDisable
# Disable: terminalserver-server/TS_ENABLE_DFSS
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Session Manager\Quota System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCpuQuota' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": terminalserver-server/TS_ENABLE_DFSS
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Session Manager\Quota System'
Remove-ItemProperty -Path $k -Name 'EnableCpuQuota' -ErrorAction SilentlyContinue