Created
June 4, 2025 00:05
-
-
Save nixoletas/b2d54566a7ef2fcfd97a216130c83c0c to your computer and use it in GitHub Desktop.
Download, unzip and run LeDragoX/Win-Debloat-Tools
This file contains hidden or 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download and run with the following command: