Created
November 26, 2018 15:45
-
-
Save jbaker10/716c0eff50660c26d947f8fee8c3c37f 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
$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