One command to set up WSL2 + your full dev environment on Windows.
| Requirement | Details |
|---|---|
| OS | Windows 10 (build 19041+) or Windows 11 |
| PowerShell | Version 5.1 or higher |
| Admin rights | Must run PowerShell as Administrator — scripts auto-restart with admin if not |
| Execution Policy | Run Set-ExecutionPolicy Bypass -Scope Process if you get a security error |
| Virtualization | Must be enabled in BIOS (the tool checks this) |
| Internet | Required to download tools and packages |
- Open PowerShell as Administrator (right-click → Run as Administrator)
- Paste the one-liner below and press Enter
- Let the script do the rest
If you get a security error, run this first:
Set-ExecutionPolicy Bypass -Scope Process
Run any script independently — each does one thing and nothing else.
Scans: OS version, PowerShell version, admin rights, virtualization, RAM, disk space, internet, WSL, winget. Tells you what passes and what needs fixing before you run anything else.
iwr -useb 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/check-system.ps1' | iexEnables WSL2, lets you pick a distro (Ubuntu, Kali, Debian, Alpine, Fedora, openSUSE). Nothing else.
iwr -useb 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/wsl-only.ps1' | iexInstalls only what's missing: Git, VS Code, Node.js, Python, GitHub CLI, Docker Desktop, Postman, Windows Terminal, PowerShell 7, 7-Zip, FFmpeg, curl, wget, PowerToys, Oh-My-Posh.
iwr -useb 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/dev-tools.ps1' | iexMakes your PowerShell prompt beautiful with Oh-My-Posh and file icons. Nothing else.
iwr -useb 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/beautify-only.ps1' | iexInstalls inside WSL: nmap, masscan, sqlmap, nikto, gobuster, dirb, ffuf, wpscan, whatweb, hashcat, john, hydra, theHarvester, recon-ng, sherlock, metasploit-framework, searchsploit, responder, enum4linux, smbclient, impacket-scripts, netcat-openbsd, tcpdump, aircrack-ng.
iwr -useb 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/cyber-tools.ps1' | iexChains: System check → WSL2 → Dev tools → Beautify → Post-setup guide. Run this if you want it all automated.
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/full-setup.ps1'))Opens the interactive menu where you can pick any option: system scan, WSL, tools, cyber tools, Docker, optimization, beautify, or run all.
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/install.ps1'))| # | Feature | What it does |
|---|---|---|
| 1 | System Report | Full hardware scan (CPU, RAM, disk, virtualization, OS build, WSL status, all 15 tools) |
| 2 | Install Tools | Auto-detects what's installed, installs only what's missing |
| 3 | WSL Setup | Enables WSL2, installs any Linux distro (Ubuntu, Kali, Debian, Alpine, Fedora, openSUSE) |
| 4 | Cyber Tools | Install 24 pentesting tools inside WSL |
| 5 | Docker + WSL | Installs Docker Desktop, guides WSL2 integration setup |
| 6 | Optimization | Clean temp files, SFC scan, DISM repair, WSL disk shrink |
| 7 | Beautify | Oh-My-Posh prompt + Terminal-Icons for a beautiful PowerShell |
| 8 | Run ALL + Post-Setup Guide | Full auto setup — then shows what to do next |
Git VS Code Node.js LTS Python 3 GitHub CLI (gh) Docker Desktop Postman Windows Terminal PowerShell 7 7-Zip FFmpeg curl wget PowerToys Oh-My-Posh
| Category | Tools |
|---|---|
| Scanner | nmap masscan |
| Web | sqlmap nikto gobuster dirb ffuf wpscan whatweb |
| Cracking | hashcat john hydra |
| OSINT | theHarvester recon-ng sherlock |
| Exploit | metasploit-framework searchsploit (exploitdb) |
| Network | responder enum4linux smbclient impacket-scripts netcat-openbsd tcpdump |
| Wireless | aircrack-ng |
Try this instead (bypasses rate limit):
iex (curl -s 'https://raw.githubusercontent.com/AdhiHub/WSL-Setup/main/AdhiHub.ps1' | Out-String)Or download manually:
- Go to https://github.com/AdhiHub/WSL-Setup
- Click any
.ps1file →Raw→ Save as.ps1 - Right-click →
Run with PowerShell
# Update everything
winget upgrade --all
wsl --update
wsl --shutdown
# See your distros
wsl -l -v
# Enter a distro
wsl -d Ubuntu
wsl -d kali-linuxMade by AdhiHub