Powershell 2.0 Download — File

[Parameter(Mandatory=$false)] [int]$TimeoutSeconds = 60,

Here is a :

<# .SYNOPSIS Download a file using PowerShell 2.0 with TLS 1.2 support. .DESCRIPTION This script uses System.Net.WebClient to download a file. It forces TLS 1.2 for modern HTTPS compatibility. .NOTES Author: Legacy IT Admin PowerShell Version: 2.0+ #> param( [Parameter(Mandatory=$true)] [string]$Url, powershell 2.0 download file

[Parameter(Mandatory=$true)] [string]$OutputPath, [Parameter(Mandatory=$false)] [int]$TimeoutSeconds = 60

0
Would love your thoughts, please comment.x
()
x