Skip to content

Instantly share code, notes, and snippets.

@okamos
Created April 18, 2022 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okamos/f3cc03c2215b08a474662b720f599d16 to your computer and use it in GitHub Desktop.
Save okamos/f3cc03c2215b08a474662b720f599d16 to your computer and use it in GitHub Desktop.
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip"
$LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool"
(New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip")
Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force
CD $LocalArchivePath\Parsec-Cloud-Preparation-Tool-master\ | powershell.exe .\Loader.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment