NirCmd
FREE 100% SAFE

NirCmd

(3 votes, average: 2.67 out of 5)
2.7 (3 votes)
Updated November 17, 2026
01 — Overview

About NirCmd

NirCmd is a single executable that does small system jobs from the command line, with no window and no questions. Call it with monitor off and the screen goes dark. Call it with setsysvolume 65535 and the volume goes to full, mutesysvolume 2 toggles mute, cdrom open does what it says, and savescreenshot writes a PNG of the desktop to a path you name.

Several dozen verbs cover the volume, the display, power, windows, the clipboard, the registry and the tray, and each one is a line in a batch file, a shortcut target or a scheduled task.

It fills the space between what a shortcut can do and what a script is worth writing. AutoHotkey will do all of this and far more, but it asks for a script, a language and a running interpreter. NirCmd asks for a line, and a line is often all the job needs.

A shortcut that mutes the speakers, a scheduled task that turns the monitor off at midnight, a batch file that sets the default sound device before a game starts. None of them deserves a program, and each of them is one call here.

Volume, sound devices and the display

The volume verbs set, change or mute the system volume, with the level given on a scale to 65535 or as a signed change, and the same verbs work per application with a process name, which is how a batch file quiets the browser while a call runs.

Default playback and recording devices switch by name, so a headset and a pair of speakers swap with a double-click rather than a trip through the sound settings. A beep and a speak verb that reads text aloud through the system voice cover the audible side.

The display verbs turn the monitor off or on, start the screensaver, change the resolution, and set a brightness level on laptops that expose it. Turning the monitor off from a shortcut is the single most popular use, and the async variant exists because the plain one occasionally fights the mouse and wakes the screen straight back up.

Window control and processes

Any window can be found by title, by class or by the process that owns it, with wildcards, and then hidden, shown, minimised, maximised, closed, brought to the front, resized, moved or pinned on top. That alone turns a batch file into a window manager, and it is how people park a dashboard on a second screen at logon or hide a program that insists on showing a window it does not need.

Processes can be killed or pinned to a set of cores, and a wait verb pauses until a named process exits, so a script can run something after a program closes.

Talking back from a script

NirCmd tray balloons and question boxes give a script a way to talk back, and the question box returns a value the batch file can branch on. The exec verb runs another program hidden, shown, minimised or maximised, and a companion verb runs one as administrator through the standard prompt. Services start and stop by name.

NirCmd also has a console version in the same archive, for the cases where the output of a verb belongs in a terminal rather than in a dialog.

Registry, clipboard and power

Registry values can be set or read, which puts a tweak in a batch file without regedit. The clipboard loads from a string or a file, saves to a file, or clears. The power verbs log off, restart, shut down, hibernate or put the machine to standby, with a force variant that skips the applications that would object. Shortcuts can be created with arguments and icons, the recycle bin emptied, the desktop refreshed, a file’s date changed, and a media file played in the background from a line.

There is a loop verb that repeats another command on an interval, so loop 10 60000 followed by a screenshot verb captures the desktop every minute for ten minutes. For running the same verbs on another machine over the network, a remote execution kit carries the command across and this one runs at the far end.

Scripts of several lines go in a text file that the script verb reads, which is the closest the tool comes to a language.

What it is not, and the antivirus question

There is no logic beyond loop and the question box, no variables, no hotkeys and no interface, and anyone who needs a condition in the middle of a sequence has outgrown it and should take AutoIt or a real script. The reference is one long page that has to be read, since the verbs are terse and some take arguments in an order that is not obvious.

The other thing to expect is a security warning. A tool that can kill processes, hide windows and set registry values from a silent command looks exactly like something malware would ship, and some scanners flag the executable on principle.

It is a nuisance shared by this whole family of utilities, and nothing in the tool deserves it. Whitelist it once and move on.

Conclusion

NirCmd is for the person who keeps a folder of small batch files and shortcuts for the things the system makes awkward, from muting the speakers to parking a window to shutting down at a set hour. For that person it replaces a dozen scripts with a dozen lines, and the console version fits wherever a terminal does.

Anyone who needs a decision in the middle of a task should write a script in a tool that has decisions, and call this one from it for the parts it does well. That arrangement is how most people end up using it, and it works.

02 — Verdict

Pros & Cons

The good
  • Dozens of system actions from one line with no window
  • Volume and default device switching from a shortcut or batch file
  • Window control by title, class or process, including hide and pin on top
  • Registry, clipboard, services and power from the same executable
  • Console variant and a loop verb for repeating actions
The not-so-good
  • No variables or conditions, so logic belongs in a real script
  • Verbs and argument order must be learned from a long reference page
  • Some security scanners flag the executable by reputation
  • Monitor-off can wake back up unless the async variant is used
03 — FAQ

Frequently asked questions

Yes. Use the monitor off verb as the shortcut target, or the async variant if the screen wakes again immediately after.

Yes. The device verbs set the default playback or recording device by its name, so a shortcut swaps between headset and speakers.

Because it can kill processes, hide windows and write the registry silently, which looks like malware behaviour on paper. It is a reputation flag rather than a detection, and whitelisting the file resolves it.

Yes. The loop verb repeats any other verb a set number of times at a set interval in milliseconds, which covers periodic screenshots or a volume reset without a scheduled task.

Specifications

Technical details

Latest version2.87
File namenircmd-x64.zip
MD5 checksum7AEDFF0868C4CE351A9619857FDF8DDA
File size 152.06 KB
LicenseFree
Supported OSWindows 11 / Windows 10 / Windows 8 / Windows 7
Author NirSoft
Alternatives

Similar software

Community

User reviews

guest
0 Comments
Oldest
Newest Most Voted