Skip to content

Instantly share code, notes, and snippets.

@sheeeng
Created December 5, 2018 18:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheeeng/c41d552be61268d4a2cb1e7e89057614 to your computer and use it in GitHub Desktop.
Save sheeeng/c41d552be61268d4a2cb1e7e89057614 to your computer and use it in GitHub Desktop.
#!/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