Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!


Package test results are passing.

This package was approved as a trusted package on 7/1/2018.

NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more ...

To install NirCmd, run the following command from the command line or from PowerShell:

C:\> choco install nircmd

To upgrade NirCmd, run the following command from the command line or from PowerShell:

C:\> choco upgrade nircmd


  • legal\License.txt Show
    This utilities package is released as freeware, which means that you can freely use it at your home or in your company.
    The only exception is NK2Edit utility, which requires to purchase a commercial license if you use it in a company/business organization.
    Disclaimer: The software package is provided "AS IS" without any warranty, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason.
  • legal\redistribution.pdf
  • legal\VERIFICATION.txt Show
    Verification is intended to assist the Chocolatey moderators and community
    in verifying that this package's contents are trustworthy.
    Package can be verified like this:
    1. Go to to download the zip file:
    2. You can use one of the following methods to obtain the SHA256 checksum:
       - Use powershell function 'Get-FileHash'
       - Use Chocolatey utility 'checksum.exe'
       checksum32: F56A6166F8956C507CC2BFEC71339F3C467C0421FE6D16FBE4C52A36D79CE0EA
       checksum64: 37445B39E2FC437688164866C495BD28890DED5D0DBF71615BF92776E57C5189
    File 'redistribution.pdf' presents written approval from Nir Softer that allows software
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
    $packageArgs = @{
      PackageName    = 'nircmd'
      FileFullPath   = gi $toolsPath\*
      FileFullPath64 = gi $toolsPath\*
      Destination    = $toolsPath
    ls $toolsPath\* | ? { $_.PSISContainer } | rm -Recurse -Force #remove older package dirs
    Get-ChocolateyUnzip @packageArgs
    rm $toolsPath\*.zip -ea 0
  • tools\ Show
    md5: 04012DA8D2AD2CBAC8E3FF8BE04BBE24 | sha1: 31FDA8EEE9FE628EE35BCCE6C4833FD0E07503BC | sha256: 37445B39E2FC437688164866C495BD28890DED5D0DBF71615BF92776E57C5189 | sha512: 2A97C3BCC3917789A345F7347B00066A1B1216FA929E29E61BD2F46210B2B3F8F3E9B4A40E20CFC063C9A6BF5E93E90FCC2561023AFEF2A51A4B6C65524EE1D8
  • tools\ Show
    md5: DFD572FEF9B0D10E91FC4D2BA256294A | sha1: A00955DCA5324E13F7E8E41649444529A4642CB8 | sha256: F56A6166F8956C507CC2BFEC71339F3C467C0421FE6D16FBE4C52A36D79CE0EA | sha512: ED7C38530405D4747F437DFF6C0F20933BF02A8546E9FDECCF728D8591D5B8232834C3430D36E4F451CD80258A5BF2911971FD60A0C04BA0C3E363BD24910AAE

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Nir Sofer


Nir Sofer


Version History

Version Downloads Last updated Status
NirCmd 197 Monday, November 6, 2017 approved
NirCmd 5389 Monday, November 7, 2016 approved
NirCmd 2.81 1064 Monday, May 23, 2016 approved
NirCmd 2.75 1998 Monday, August 12, 2013  
NirCmd 289 Tuesday, July 9, 2013  
NirCmd 2.71 295 Tuesday, July 9, 2013  

Discussion for the NirCmd Package

Ground rules:

  • This discussion is only about NirCmd and the NirCmd package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or NirCmd, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.