A PowerShell script to automatically download and install the latest Android SDK Platform-Tools (ADB and Fastboot) globally on Windows. The script is interactive and prompts for user confirmation before executing major commands.
- Automatic Administrator elevation detection and prompt.
- Securely downloads the latest official platform-tools zip directly from Google APIs.
- Extracts platform-tools directly to the installation folder (defaults to C:\platform-tools) without nested directories.
- Automatically adds the installation directory to the System PATH environment variable so adb and fastboot can be run from any command-line window.
- Asks for y/n confirmation before performing each step.
- Automatically cleans up downloaded temporary zip archives upon completion.
You can download and run the script directly in PowerShell without manually saving the file using the following command:
irm https://raw.githubusercontent.com/rdevz-ph/win-adb-fastboot-installer/main/Install-AdbFastboot.ps1 | iexNote: Make sure to run this in a PowerShell window. The script will automatically request administrative privileges if they are needed.
If you have already downloaded the script to your computer, open a PowerShell terminal and run:
& "C:\Users\Romel\Desktop\SCRIPTS\Install-AdbFastboot.ps1"You can also specify a custom installation directory using the -InstallPath parameter:
& "C:\Users\Romel\Desktop\SCRIPTS\Install-AdbFastboot.ps1" -InstallPath "C:\MyAndroidTools"- Windows OS
- PowerShell 5.1 or newer (compatible with Windows PowerShell and PowerShell Core)
- Internet connection
This project is licensed under the MIT License - see the LICENSE file for details.