Created
December 5, 2018 18:22
-
-
Save sheeeng/c41d552be61268d4a2cb1e7e89057614 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env powershell | |
$ErrorActionPreference = "Stop" # Fail fast! | |
# Import-Module BitsTransfer | |
# Start-BitsTransfer -Source https://download.sysinternals.com/files/SysinternalsSuite.zip | |
# Start-BitsTransfer -Source https://download.sysinternals.com/files/SysinternalsSuite-Nano.zip | |
# powershell.exe -ExecutionPolicy ByPass -File .\download_sysinternals.ps1 | |
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
New-Item -ItemType Directory -Force -Path "$(Get-Location)/SysinternalsSuiteDownloads" | Out-Null | |
Invoke-WebRequest https://download.sysinternals.com/files/SysinternalsSuite.zip -OutFile SysinternalsSuiteDownloads/SysinternalsSuite.zip | |
Invoke-WebRequest https://download.sysinternals.com/files/SysinternalsSuite-Nano.zip -OutFile SysinternalsSuiteDownloads/SysinternalsSuite-Nano.zip | |
Expand-Archive "SysinternalsSuiteDownloads/SysinternalsSuite.zip" | |
Expand-Archive "SysinternalsSuiteDownloads/SysinternalsSuite-Nano.zip" | |
[Environment]::Exit(42) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment