Scripts/Get-PoshWSUSConfigProxyServer.ps1

function Get-PoshWSUSConfigProxyServer {
<#
    .SYNOPSIS
        This cmdlet gets config settings of proxy to download updates.

    .EXAMPLE
        Get-PoshWSUSConfigProxyServes
     
        Description
        -----------
        This command will show list of proxy configuration parameters.
    
    .OUTPUTS
        Microsoft.UpdateServices.Internal.BaseApi.UpdateServerConfiguration

    .NOTES
        Name: Get-PoshWSUSConfigProxyServer
        Author: Dubinsky Evgeny
        DateCreated: 1DEC2013
        Modified: 06 Feb 2014 -- Boe Prox
            -Removed instances where set actions are occuring

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


    [CmdletBinding()]
    Param()

    Begin
    {
        if($wsus)
        {
            Write-Warning "Use Connect-PoshWSUSServer for establish connection with your Windows Update Server"
            Break
        }
    }
    Process
    { 
        Write-Verbose "Getting proxy server configuration"
        $wsus.GetConfiguration() | select UseProxy, ProxyName, ProxyServerPort, `
                                          ProxyUserDomain, ProxyUserName, `
                                          HasProxyPassword, AllowProxyCredentialsOverNonSsl, `
                                          AnonymousProxyAccess, SslProxyName, `
                                          SslProxyServerPort, UseSeparateProxyForSsl
    }
    End{}
}