PowerShell Script to download and unzip files

The below PowerShell script will demonstrate how to download and unzip files to specific directory. #!powershell # Setup Key Values ################################### $URL="http://yourserver//yourzipfilename.zip" $downloadtargetpath= "C:\temp\yourzipfilename.zip" $unziptargetpath= "C:\temp" # Forece TLS 1.2 ################################### [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Download the script to C:\temp Directory ########################################### write-host " " write-host "Download the zip [...]