Scripts/Get-PSWSUSSupportedUpdateLanguages.ps1

function Get-PSWSUSSupportedUpdateLanguages {
    
    <#
    .SYNOPSIS
        Gets the languages that WSUS supports.
 
    .DESCRIPTION
        Gets the languages that WSUS supports. The language codes follow the format specified in RFC1766.
        For example, "en" for English or "pt-br" for Portuguese (Brazil). WSUS supports a subset of the
        language codes that are specified in ISO 639 and culture codes that are specified in ISO 3166.
 
    .EXAMPLE
        Get-PSWSUSSupportedUpdateLanguages
         
        Description
        -----------
        Gets the languages that WSUS supports.
 
    .OUTPUTS
        System.Collections.Specialized.StringCollection
 
    .NOTES
        Name: Get-PSWSUSSupportedUpdateLanguages
        Author: Dubinsky Evgeny
        DateCreated: 1DEC2013
 
    .LINK
        http://blog.itstuff.in.ua/?p=62#Get-PSWSUSSupportedUpdateLanguages
 
    .LINK
        http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.updateservices.administration.iupdateserverconfiguration.supportedupdatelanguages(v=vs.85).aspx
 
 
    #>


    [CmdletBinding()]
    Param
    (
    )

    Begin
    {
        if($wsus)
        {
            $config = $wsus.GetConfiguration()
            $config.ServerId = [System.Guid]::NewGuid()
            $config.Save()
        }#endif
        else
        {
            Write-Warning "Use Connect-PSWSUSServer to establish connection with your Windows Update Server"
            Break
        }
    }
    Process
    { 
        Write-Verbose "Getting WSUS Supported Update Languages"
        $config.SupportedUpdateLanguages -as [System.Collections.Specialized.StringCollection]
    }
    End{
        
    }
}