Thursday, September 03, 2015

Throttle WSUS Bandwidth During Business Hours

I keep forgetting the appcmd syntax to set/unset maxBandwidth so I can throttle overall WSUS downloads. This gives me the benefit of reducing link congestion during business hours, and providing maximum link utilization out of hours.

rem Apply Bandwidth throttle to WSUS Administration site
%SYSTEMROOT%\System32\inetsrv\appcmd.exe set config -section:system.applicationHost/sites "/[name='WSUS Administration'].limits.maxBandwidth:76800" /commit:apphost

rem Remove Bandwidth throttle from WSUS Administration site
%SYSTEMROOT%\System32\inetsrv\appcmd.exe clear config -section:system.applicationHost/sites "/[name='WSUS Administration'].limits" /commit:apphost

Pop the first one into a script and use Task Scheduler to turn it on prior to business hours. Pop the second one into a script and use Task Scheduler to turn it off after business hours. You could of course use the first script with a higher maxBandwidth setting if you want out of hours to still be throttled, just not so much as business hours.

1 comment:

Hilton Travis said...

This is handy information to have - especially in Australia where the Not Broadband Network is being rolled out using crappy hybrid technology instead of proper FTTN (yes, even GPON).