Skip to content

Instantly share code, notes, and snippets.

@jbaker10
Created November 26, 2018 15:45
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 jbaker10/716c0eff50660c26d947f8fee8c3c37f to your computer and use it in GitHub Desktop.
Save jbaker10/716c0eff50660c26d947f8fee8c3c37f to your computer and use it in GitHub Desktop.
$path = "C:\Temp"
if(!(Test-Path -Path $path)){
"Creating C:\Temp"
New-Item -ItemType directory -Path $path
}
$url = "http://slack.com/ssb/download-win64-msi"
$output = "C:\Temp\slack.msi"
Invoke-WebRequest -Uri $url -OutFile $output
Invoke-Command -ScriptBlock { & cmd /c "msiexec.exe /i $output" /qn }
"Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment