Created How to retrieve links to latest packages (markdown)

manojampalam 2016-02-28 11:47:01 -08:00
parent 0fec813b86
commit 172b8dc34b

@ -0,0 +1,8 @@
####Follow these Powershell steps to retrieve links to latest packages:
`$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/latest/'`
`$request = [System.Net.WebRequest]::Create($url)`
`$request.AllowAutoRedirect=$false`
`$response=$request.GetResponse()`
`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win64.zip'`
`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win32.zip'`