Scripts/Get-PoshWSUSConfigUpdateSource.ps1

function Get-PoshWSUSConfigUpdateSource {
<#
    .SYNOPSIS
        Gets configuration server from which to synchronize updates.

    .EXAMPLE
        Get-PoshWSUSConfigUpdateSource

    .OUTPUTS
        Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration

    .NOTES
        Name: Get-PoshWSUSConfigUpdateSource
        Author: Dubinsky Evgeny
        DateCreated: 1DEC2013
        Modified: 05 Feb 2014 -- Boe Prox
            -Removed set actions on Get function
            -Removed Begin,Process, End as it does not support pipeline

    .LINK
        http://blog.itstuff.in.ua/?p=62#Get-PoshWSUSConfigUpdateSource

#>


    [CmdletBinding()]
    Param()

        if($wsus)
        {
            Write-Warning "Use Connect-PoshWSUSServer for establish connection with your Windows Update Server"
            Break
        }

        Write-Verbose "Getting WSUS update files configuration"
        $config | select SyncFromMicrosoftUpdate, `
                         UpstreamWsusServerName, `
                         UpstreamWsusServerPortNumber, `
                         UpstreamWsusServerUseSsl, `
                         IsReplicaServer

}