Home > PowerShell Scripting, Remote Desktop Services (RDS), Server Based Computing > Checking the status of Dynamic Fair Share Scheduling in Server 2008 R2

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)

(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)

$temp = (gwmi win32_terminalservicesetting -N "root\cimv2\terminalservices")
$temp.enabledfss = 0
$temp.put()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: