Skip to content

Instantly share code, notes, and snippets.

@nixoletas
Created June 4, 2025 00:05
Show Gist options
  • Save nixoletas/b2d54566a7ef2fcfd97a216130c83c0c to your computer and use it in GitHub Desktop.
Save nixoletas/b2d54566a7ef2fcfd97a216130c83c0c to your computer and use it in GitHub Desktop.
Download, unzip and run LeDragoX/Win-Debloat-Tools
# Define variables
$zipUrl = "https://github.com/LeDragoX/Win-Debloat-Tools/archive/main.zip"
$downloadPath = "$env:TEMP\Win-Debloat-Tools.zip"
$extractPath = "$env:USERPROFILE\Win-Debloat-Tools"
# Download the zip
Write-Host "Downloading zip file..."
Invoke-WebRequest -Uri $zipUrl -OutFile $downloadPath
# Extract the zip
Write-Host "Extracting zip file to $extractPath..."
Expand-Archive -Path $downloadPath -DestinationPath $extractPath -Force
# Path to the CMD file
$cmdPath = Join-Path $extractPath "Win-Debloat-Tools-main\OpenTerminalHere.cmd"
# Try to run as administrator
Write-Host "Attempting to run OpenTerminalHere.cmd as administrator..."
Start-Process -FilePath $cmdPath -Verb RunAs
# Show command to unblock and run script
Write-Host "`nCopy the line bellow and paste on the recently opened terminal:`n"
# Command with blue color
Write-Host 'Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"WinDebloatTools.ps1" 'CLI'' -ForegroundColor Blue
@nixoletas
Copy link
Author

Download and run with the following command:

irm https://gist.githubusercontent.com/nixoletas/b2d54566a7ef2fcfd97a216130c83c0c/raw/749a83d3ad176c9c57edaeeced5e377b257fb123/debloat.ps1 | iex

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