Skip to content

Instantly share code, notes, and snippets.

@bdwyertech
Created April 20, 2017 18:39
Show Gist options
  • Save bdwyertech/495b3dbe59de0b93474eb7a62e0a988d to your computer and use it in GitHub Desktop.
Save bdwyertech/495b3dbe59de0b93474eb7a62e0a988d to your computer and use it in GitHub Desktop.
Reset Slack Windows App -- Typically resolves crashing issues
# Reset_Slack.ps1
# Brian Dwyer - Intelligent Digital Services
# Fixes Slack startup crashing issues on Windows
Stop-Process -Name slack -Force -EA SilentlyContinue
Remove-Item -Path (Resolve-Path "$env:APPDATA\Slack\*") -Recurse -Force -EA SilentlyContinue -Verbose
@bdwyertech
Copy link
Author

This can be run by pasting this into a command prompt (Windows Key + R, 'cmd' + enter)

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('http://bit.ly/2oqZQm9'))"

@JoshMuehling
Copy link

Dear God no! Despite the fact that http://bit.ly/2oqZQm9 does appear to resolve to the above script, no one should ever run a powershell script directly off of some bit.ly link. Download it, look at it, and then run it.

While I have no reason to distrust @bdwyertech, and the script linked does do what it says it does, there's nothing stopping them from swapping out the destination of that link in the future, or even redirecting the link based on the user agent string of the request and slipping in something malicious.

@elpolish
Copy link

Dear God no! Despite the fact that http://bit.ly/2oqZQm9 does appear to resolve to the above script, no one should ever run a powershell script directly off of some bit.ly link. Download it, look at it, and then run it.

While I have no reason to distrust @bdwyertech, and the script linked does do what it says it does, there's nothing stopping them from swapping out the destination of that link in the future, or even redirecting the link based on the user agent string of the request and slipping in something malicious.

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment