library/PoshWSUS/2.3.1.6/Scripts/Get-PSWSUSConfigUpdateFiles.ps1

function Get-PSWSUSConfigUpdateFiles {
<#
    .SYNOPSIS
        Gets config whether updates are stored locally or whether clients download approved updates directly from Microsoft Update.
 
    .DESCRIPTION
        Gets config whether updates are stored locally or whether clients download approved updates directly from Microsoft Update.
 
    .EXAMPLE
        Get-PSWSUSConfigUpdateFiles
 
    .OUTPUTS
        Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration
 
    .NOTES
        Name: Get-PSWSUSConfigUpdateFiles
        Author: Dubinsky Evgeny
        DateCreated: 1DEC2013
 
    .LINK
        http://blog.itstuff.in.ua/?p=62#Get-PSWSUSConfigUpdateFiles
 
#>


    [CmdletBinding()]
    Param()

    Begin
    {
        if($wsus)
        {
            $_wsusconfig = $wsus.GetConfiguration()
            $_wsusconfig.ServerId = [System.Guid]::NewGuid()
            $_wsusconfig.Save()
        }#endif
        else
        {
            Write-Warning "Use Connect-PSWSUSServer to establish connection with your Windows Update Server"
            Break
        }
    }
    Process
    { 
        Write-Verbose "Getting WSUS update source configuration"
        $wsus.GetConfiguration() | select HostBinariesOnMicrosoftUpdate, DownloadExpressPackages, DownloadUpdateBinariesAsNeeded, GetContentFromMU
    }
    End{}
}