Nmap silent install and uninstall
Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing.
- Vendor
- Nmap Project
- Category
- Networking
- Installer
- NSIS (Nullsoft)
- Architecture
- x86
- Checked version
- 7.80
- winget ID
Insecure.Nmap- License
- Modified GNU GPLv2
- Download
- Official download
Silent install
nmap-7.80-setup.exe /S - Download the installer from the direct download link.
- Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
- Change to the folder with the installer, for example
cd C:\Temp. - Run the command above. Adjust the file name if you downloaded a different version.
Or install with winget
winget install --id Insecure.Nmap --exact --silent --scope machine --accept-package-agreements --accept-source-agreements Silent uninstall
winget uninstall --id Insecure.Nmap --exact --silent --accept-source-agreements Run the command from an elevated Command Prompt.
About the NSIS (Nullsoft) installer
NSIS installers use /S for a silent install. Switches are case-sensitive, and /D= must come last without quotes.
| Switch | What it does |
|---|---|
/S | Silent install (capital S). |
/D=C:\Path | Install folder. Must be the last switch, no quotes. |
/allusers | Per-machine install, supported by many but not all NSIS setups. |
Deploy Nmap with Microsoft Intune
Package the installer as a Win32 app (.intunewin) and use these settings:
| Install command | nmap-7.80-setup.exe /S |
|---|---|
| Uninstall command | Use the uninstaller from the install folder; winget is not available to the SYSTEM account by default. |
| Install behavior | System |