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

Related Posts

Viewing VMware Unified Access Gateway statistics w... Is this thing still on? Good! The VMware Unified Access Gateway really is a wonderful device. With a quick deployment of an OVF...
New Module: Creating an RDP file password with Pow... Here's something that is surprisingly tricky to automate in this day and age. Creating a password and storing it in an RDP file. I'm not here to debat...
ThreadLocker 2.0 is live! Back in 2012 I wrote a utility called "ThreadLocker" for dealing with CPU heavy processes or multi threaded processes that have a nasty tendency to ca...

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