The 10 Commands · lesson 9 · 2026-10-19
How to Use Nmap in Windows 11 (2026 Guide)
Before you start
- A Windows 11 PC with administrator rights (the installer asks once, at the Windows permission prompt).
- Internet access: you download the installer from
nmap.org, and the lesson scansscanme.nmap.org, a host the Nmap project provides for test scans. - Only test systems you own or are authorized to test.
This is a Windows 11 laptop scanning a server on the internet with Nmap, the tool security professionals use to find every open door on a computer. No Linux, no virtual machine tricks, just PowerShell. In the next few minutes you will install it and run this exact scan yourself.
We start from a completely fresh Windows 11 machine, so nothing here is skipped. You will download the official installer, run real scans from PowerShell, read the results, find out what software a server is running, and save your results to a file.
One rule before we begin. Only scan computers you own, or ones you have clear permission to test. Everything today runs against scanme dot nmap dot org, a practice server the Nmap Project runs so people can learn safely.
Step one, get the installer. Open Microsoft Edge and go to nmap dot org slash download. Always download Nmap from this official site, never from a random mirror.
Right now, nmap dot org shows this warning: your connection isn’t private. That is not a problem with your computer. The website’s security certificate expired on October eighteenth, and the Nmap team has not renewed it yet. Normally, you should never click past this warning. Today we will, but only because we are going to check the installer’s digital signature ourselves before it can change anything. Click Advanced, then Continue to nmap dot org.
This is the official download page. Under Get the latest Nmap for your system, click Windows. Then click the latest stable release self installer, the file whose name starts with nmap and ends in setup dot exe.
The download is done. Click Open file.
Windows asks whether this app can make changes to your device. This is the check we promised. Look at the verified publisher line. It must say Nmap Software L L C. Windows only shows that name when the file’s digital signature is valid, so it proves the file came from the Nmap Project and was not changed on the way. If it says unknown publisher, or any other name, click No and delete the file. Ours says Nmap Software L L C, so click Yes.
Here is the license agreement. Nmap is free and open source. Click I Agree.
This screen lists everything the installer will add. Leave all of it ticked. The important one is Npcap, and we will see why in a moment. Click Next.
Keep the default folder, and click Install.
Partway through, a second installer opens. This is Npcap. Windows normally does not let programs build and send their own network packets. Npcap is a small driver that gives Nmap that ability, and it is what makes Nmap’s fastest scans work on Windows. Click I Agree.
Leave these options exactly as they are. The first box is unticked, which means you will not have to run PowerShell as administrator every time you scan. Click Install.
Npcap is installed. Click Next, then Finish.
Nmap has finished installing. Click Next, keep the shortcuts, click Next again, then click Finish, and close the browser.
Step two, open PowerShell. Press the Windows key and R together, type powershell, and press Enter. PowerShell is the window where you type commands instead of clicking buttons.
Let’s check that Nmap is installed.
Is Nmap installed?
nmap --version
| Part | What it does |
|---|---|
nmap |
the tool |
--version |
report the installed version, then stop |
Nmap, followed by two dashes and the word version, asks the tool to report which version is installed, and then stop. It is the quickest way to prove that PowerShell can find Nmap. If PowerShell says nmap is not recognized, close the window and open a new one.
Type it, and press Enter.
There is the version number, and on the line below it, Npcap. Both are installed, and the installer already added Nmap to the system path, which is why PowerShell found it without us typing where it lives.
Step three, your first scan.
Your first scan
nmap scanme.nmap.org
| Part | What it does |
|---|---|
nmap |
the tool |
scanme.nmap.org |
the practice server we may scan |
That is the whole command. Nmap on its own, followed by the computer you want to check. With nothing else added, Nmap knocks on the one thousand most common ports. A port is a numbered door on a computer, and each service, like a website or a remote login, listens behind its own door.
Type it, and press Enter.
Let’s read this together. Host is up means the server answered. Below that is the table that matters. The first column is the port number. The second is its state. Open means a program is listening behind that door. Closed means the door answered, but nothing is behind it. And the third column is Nmap’s best guess at what usually runs on that port.
Port twenty two is open. That is S S H, used for remote logins. Port eighty is open too, which is a web server. Those two open doors are exactly what an attacker, or a defender, would look at first.
Next, when you only care about a few doors, you can name them.
Check only the ports you choose
nmap -p 22,80 scanme.nmap.org
| Part | What it does |
|---|---|
-p |
only check these ports |
22,80 |
remote login and web |
Dash p means ports, followed by a list separated by commas, with no spaces. Checking two doors instead of a thousand finishes in a fraction of the time, and it sends far less traffic to the server.
Run it.
Just the two ports we asked for, and it finished almost instantly.
Now, an open door tells you something is there. The next scan tells you exactly what.
Find out what software is running
nmap -sV -p 22,80 scanme.nmap.org
| Part | What it does |
|---|---|
-sV |
detect the software and its version |
-p 22,80 |
only these two ports |
Dash s, capital V, means service version. Instead of guessing from the port number, Nmap talks to each open port and reads back what program answers and which version it is. That matters, because security problems are published for specific versions of software.
Run it.
Look at the new version column. Port twenty two is running Open S S H, and port eighty is running the Apache web server, each with its version number. That is the information you would look up to find out whether a server needs patching.
Finally, save your results, so you can read them later or share them.
Save the results to a file
nmap -sV -p 22,80 scanme.nmap.org -oN myscan.txt
| Part | What it does |
|---|---|
-sV -p 22,80 |
the same scan as before |
-oN |
also save normal output |
myscan.txt |
the file to save it in |
Dash o, capital N, means output in normal format, the same thing you see on screen, written to a text file. The file lands in the folder PowerShell is sitting in, which is your user folder.
Run it.
Now open that file in Notepad.
notepad myscan.txt
Every result, saved in a plain text file you can keep, compare next week, or attach to a report.
Here is everything you did today.
Nmap on Windows 11
- Install from nmap.org — keep Npcap ticked
- nmap –version · check it works
- nmap scanme.nmap.org · your first scan
- -p 22,80 · -sV · -oN myscan.txt
You installed Nmap and Npcap from the official site, checked it from PowerShell, ran your first scan, picked the ports, found out what software was running, and saved it all to a file. Every command is in the description, ready to copy.
And the one rule that never changes.
Before you go
- Only scan what you own or have written permission to test
- scanme.nmap.org is offered by the Nmap Project for practice
- Want to go deeper? The free Nmap course is linked below
Only scan computers you own, or that you have written permission to test. Scanning someone else’s network without permission is against the law in most of the world. The practice server is there for exactly this, so use it, gently. If you want to go further, our free Nmap course picks up right where this video ends. Subscribe so you do not miss the next one.