Nmap silent install and uninstall

Nmap ("Network Mapper") is a free and open source utility for network discovery and security auditing.

EXE x86 Updated 19 Oct 2026
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
  1. Download the installer from the direct download link.
  2. Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
  3. Change to the folder with the installer, for example cd C:\Temp.
  4. 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
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.

SwitchWhat it does
/SSilent install (capital S).
/D=C:\PathInstall folder. Must be the last switch, no quotes.
/allusersPer-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 commandnmap-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 behaviorSystem

More networking apps