Disabled/Get-CiscoWebex.ps1
Function Get-CiscoWebEx { <# .SYNOPSIS Get the current version and download URL for Get-Cisco WebEx. .NOTES Site: https://stealthpuppy.com Author: Aaron Parker Twitter: @stealthpuppy #> [OutputType([System.Management.Automation.PSObject])] [CmdletBinding(SupportsShouldProcess = $False)] param ( [Parameter(Mandatory = $False, Position = 0)] [ValidateNotNull()] [System.Management.Automation.PSObject] $res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1]), [Parameter(Mandatory = $False, Position = 1)] [ValidateNotNull()] [System.String] $Filter ) # Get details from the download API $params = @{ Uri = $res.Get.Download.Uri ContentType = $res.Get.Download.ContentType } $object = Invoke-RestMethodWrapper @params If ($Null -ne $object) { # Desktop app $PSObject = [PSCustomObject] @{ Version = $object.($res.Get.Download.Properties.Version) Type = "Desktop" URI = $object.($res.Get.Download.Properties.Desktop) } Write-Output -InputObject $PSObject # VDI plug-in $PSObject = [PSCustomObject] @{ Version = $object.($res.Get.Download.Properties.Version) Type = "VDI" URI = $object.($res.Get.Download.Properties.VDI) } Write-Output -InputObject $PSObject } } |