WSUS to Foreground Mode using PowerShell

Enable Foreground Mode:
(get-wsusserver).GetConfiguration().BitsDownloadPriorityForeground = $true

Disable Foreground Mode:
(get-wsusserver).GetConfiguration().BitsDownloadPriorityForeground = $false

This has been tested on Windows Server 2008 R2 and 2012 R2 using both Internal and SQL databases.

Thanks to John Weeks for this post http://www.robertskinner.com/2013/01/wsus-on-windows-server-2012-setting.html

6 thoughts on “WSUS to Foreground Mode using PowerShell

  1. Hi Tyrone,

    Unfortunately this doesn’t seem to work for me.
    After executing:
    (get-wsusserver).getconfiguration().BitsDownloadPriorityForeground = $true

    And querying the same value again with:
    (get-wsusserver).getconfiguration().BitsDownloadPriorityForeground

    The value is still set to False .After restarting the service the value is still false.

    • The problem is that the article as written changes only the in-memory property – it never writes back to the configuration store. Try this to set Foreground download mode:

      $Config = (Get-WsusServer).GetConfiguration()
      $Config.BitsDownloadPriorityForeground = $True
      $Config.Save()

      And this to revert:

      $Config = (Get-WsusServer).GetConfiguration()
      $Config.BitsDownloadPriorityForeground = $False
      $Config.Save()

      It doesn’t seem to need a service restart to take effect (nor should we expect it to, but… you never know!)

      • Thank you! This worked for me when our WSUS server inexplicably stopped downloading updates from Microsoft. It didn’t need a restart. As soon as the setting took effect all the failed downloads kicked in immediately.
        PS: Ours is not SSL-enabled – dunno if that makes a difference.

  2. Thanks for this great tip. When WSUS is in foreground mode, it will download from MS using https instead of BITS, but do clients continue to retrieve updates using BITS?

Leave a Reply

Your email address will not be published. Required fields are marked *