Skip to content

Instantly share code, notes, and snippets.

@heywoodlh
Created May 8, 2017 14:42
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 heywoodlh/da0ee2ff0ffb8248fa2f2c77d92eb2e5 to your computer and use it in GitHub Desktop.
Save heywoodlh/da0ee2ff0ffb8248fa2f2c77d92eb2e5 to your computer and use it in GitHub Desktop.
simple powershell that downloads tools for cleaning up Windows desktop, runs them and then removes them
<# REMEMBER TO SetExecutionPolicy Unrestricted -Force #>
<# Download tech tools #>
$client = new-object System.Net.WebClient
$client.DownloadFile("https://www.dropbox.com/s/fymcd5vnwbhskt5/tech%20tools.zip?dl=1","Desktop/tech tools.zip") | Out-Null
<# Unzip tech tools #>
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
Unzip "Desktop\tech tools.zip" "Desktop\tech tools" | Out-Null
<# Execute Revo Installer #>
."Desktop\tech tools\tech tools\cleaning tools\RevoUninProSetup.exe" | Out-Null
<# Unzip ccleaner #>
Unzip "Desktop\tech tools\tech tools\cleaning tools\ccsetup523.zip" "Desktop\tech tools\tech tools\cleaning tools\ccsetup" <# Run rkill #>
."Desktop\tech tools\tech tools\cleaning tools\rkill.exe"
<# Run malwarebytes #>
."Desktop\tech tools\tech tools\cleaning tools\mb3-setup-consumer-3.0.5.1299.exe" | Out-Null
<# Run ccleaner #>
."Desktop\tech tools\tech tools\cleaning tools\ccsetup\CCleaner.exe" | Out-Null
<# Execute Revo uninstall #>
."C:\Program Files\VS Revo Group\Revo Uninstaller Pro\unins000.exe" | Out-Null
<# Execute Malwarebytes uninstall #>
."C:\Program Files\Malwarebytes\Anti-Malware\unins000.exe" | Out-Null
<# Delete tech tools #>
rm -Recurse "Desktop\tech tools*" | Out-Null
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
Unzip "Desktop\RAPIDFIRE-PC.zip" "Desktop\RAPIDFIRE-PC" | Out-Null
<# Remove zip file #>
rm "Desktop\RAPIDFIRE-PC.zip" | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment