Downloads of v


Last Update:

08 Nov 2017

Package Maintainer(s):

Software Author(s):

  • Nir Sofer


nircmd utility freeware cli automation nirsoft


This is not the latest version of NirCmd available.

  • 1
  • 2
  • 3 | Updated: 08 Nov 2017



Downloads of v


Software Author(s):

  • Nir Sofer

  • 1
  • 2
  • 3

This is not the latest version of NirCmd available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.


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


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


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


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade nircmd -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade nircmd -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure nircmd installed
    name: nircmd
    state: present
    source: STEP 3 URL

See docs at

chocolatey_package 'nircmd' do
  action    :install
  version  ''
  source   'STEP 3 URL'

See docs at

    Name: nircmd,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller nircmd
   Name     = 'nircmd'
   Ensure   = 'Present'
   Version  = ''
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'nircmd':
  provider => 'chocolatey',
  ensure   => '',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install nircmd version="" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 22 Mar 2019.


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 ...

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.

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
$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

md5: 04012DA8D2AD2CBAC8E3FF8BE04BBE24 | sha1: 31FDA8EEE9FE628EE35BCCE6C4833FD0E07503BC | sha256: 37445B39E2FC437688164866C495BD28890DED5D0DBF71615BF92776E57C5189 | sha512: 2A97C3BCC3917789A345F7347B00066A1B1216FA929E29E61BD2F46210B2B3F8F3E9B4A40E20CFC063C9A6BF5E93E90FCC2561023AFEF2A51A4B6C65524EE1D8
md5: DFD572FEF9B0D10E91FC4D2BA256294A | sha1: A00955DCA5324E13F7E8E41649444529A4642CB8 | sha256: F56A6166F8956C507CC2BFEC71339F3C467C0421FE6D16FBE4C52A36D79CE0EA | sha512: ED7C38530405D4747F437DFF6C0F20933BF02A8546E9FDECCF728D8591D5B8232834C3430D36E4F451CD80258A5BF2911971FD60A0C04BA0C3E363BD24910AAE

Log in or click on link to see number of positives.

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.

Version Downloads Last Updated Status
NirCmd 2.85 1748 Sunday, June 23, 2019 Approved
NirCmd 2.83 1957 Friday, April 19, 2019 Approved
NirCmd 2.82 1203 Monday, April 1, 2019 Approved
NirCmd 6991 Wednesday, November 8, 2017 Approved
NirCmd 364 Monday, November 6, 2017 Approved
NirCmd 5525 Monday, November 7, 2016 Approved
NirCmd 2.81 1202 Monday, May 23, 2016 Approved
NirCmd 2.75 2164 Monday, August 12, 2013 Unknown

This package has no dependencies.

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