Public/Get-CitrixGatewayFeed.ps1
Function Get-CitrixGatewayFeed { <# .SYNOPSIS Gets the current available Citrix Gateway downloads. .DESCRIPTION Reads the public Citrix Receiver web page to return an array of Receiver platforms and the available versions. Does not provide the version number for Receiver where a login is required (e.g. HTML5, Chrome) .NOTES Author: Aaron Parker Twitter: @stealthpuppy .EXAMPLE Get-CitrixGatewayFeed Description: Returns the available Citrix Gateway downloads. #> [OutputType([System.Management.Automation.PSObject])] [CmdletBinding()] Param() # Get application resource strings from its manifest $res = Get-FunctionResource -AppName "CitrixFeeds" Write-Verbose -Message $res.Name # Read the feed and filter for include and exclude strings and return output to the pipeline $gcfParams = @{ Uri = $res.Get.Gateway.Uri Include = $res.Get.Gateway.Include Exclude = $res.Get.Gateway.Exclude } $Content = Get-CitrixRssFeed @gcfParams If ($Null -ne $Content) { Write-Output -InputObject $Content } } |