🔎 Nmap Module

Install, update, and resolve Nmap from PowerShell.

Overview

The nmap module automates installation and updates of the Nmap network scanner. It ensures Nmap is installed to a predictable location, provides quick version checks, and exposes the path to the executable for automation.

Installation

Install-Module nmap

Commands

Examples

# Install Nmap
Install-Nmap

# Check installed version
Get-NmapVersion

# Update if not latest
Update-Nmap

# Get path to executable
Get-NmapPath

# Run a scan manually (after install)
& (Get-NmapPath) -sV scanme.nmap.org

Notes