Checking the status of Dynamic Fair Share Scheduling in Server 2008 R2

It’s been ages since I did a good techy /Powershell blog post so here’s the first of a few “quick hit” posts I’ll be publishing in the next few days.

Dynamic Fair Share Scheduling is a fantastic feature that Microsoft included in Server 2008 R2 to reduce contention for CPU time for users. Once enabled the fare share scheduling will happily allow users to burst all CPU resources when needed, but interrupt them abruptly when another user requires resource. I’m a massive fan of this technology and even wrote a tool to provide more functionality to this technology. (ThreadLocker)

That being said, it can be quite difficult to confirm whether DFSS is working or not, and there’s even a broken Group Policy setting as documented here to make things more confusing.

If you need quick and reliable confirmation that DFSS is enabled and running, try the following powershell command which will pull the information via WMI:

(1 = turned on, 0 = turned off)

[sourcecode language=”PowerShell”]
(gwmi win32_terminalservicesetting -N “root\cimv2\terminalservices”).enabledfss

Similarly, if you want to turn it off using powershell, try the following: (This will require a restart)

[sourcecode language=”PowerShell”]
$temp = (gwmi win32_terminalservicesetting -N “root\cimv2\terminalservices”)
$temp.enabledfss = 0

One Comment About “Checking the status of Dynamic Fair Share Scheduling in Server 2008 R2

  1. Pingback: Windows Fair CPU Sharing – DFSS if you like….is it running…. | how did I do this....

Leave a Reply