mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-28 16:34:37 +02:00
Created How to retrieve links to latest packages (markdown)
parent
0fec813b86
commit
172b8dc34b
8
How-to-retrieve-links-to-latest-packages.md
Normal file
8
How-to-retrieve-links-to-latest-packages.md
Normal file
@ -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'`
|
Loading…
x
Reference in New Issue
Block a user