Home > Windows Server Tips > Windows Systems and Network Administration > NirCMD: Command-line Swiss army knife for Windows
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

NirCMD: Command-line Swiss army knife for Windows


Serdar Yegulalp, Contributor
06.30.2007
Rating: -4.20- (out of 5)


Expert advice on Windows-based systems and hardware
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Members of this site know of my deep esteem for Nir Sofer and his unending output of portable, incredibly beneficial utilities for Windows. NirCMD, now in its 2.0 iteration, is a command-line version of a Swiss army knife, providing dozens of commands that you can incorporate into scripts or simply invoke by hand from the command line.

Many of the commands are things you might have available in other quick-and-dirty command-line utilities, but NirCmd lets you replace many of them in one package.

NirCmd's syntax is simple enough—nircmd, followed by a number of arguments that describe what to do and how to do it. For instance, nircmd standby puts the system into standby mode; nircmd win min class "IEFrame" minimizes all Internet Explorer windows.

The exact syntax for each command is spelled out in detail in the documentation. (Note: If you get into the habit of using NirCmd from the command line for many things, you can always rename it something shorter like ni to save yourself that many more keystrokes.)

Here's a sampling of the commands available within NirCMD:

  • Shut down, reboot, log off, or put the system into standby mode.
  • Open and close CD/DVD-ROM drives.
  • Change or mute the system volume.
  • Change attributes for a program window, including its size, position, Z-order or transparency.
  • Kill a process.
  • Perform manipulations with the clipboard, including reading or writing the contents of a text file to or from the clipboard.
  • Dump the memory of an active process to a text file.
  • Adjust display settings.
  • Change the time/date stamp for files or folders.
  • Run other applications with special attributes (such as specifying which folder to run in).
  • Create shortcuts to applications.
  • Add, remove or change Registry settings.
  • Send mouse or keyboard events to the system.
  • Open dialog boxes to get user feedback.
  • Perform any of the above actions after an arbitrary pause, or simply pause.
  • Perform any of the above actions on another computer across the network.

The 2.0 version insures that many of the commands, including audio controls, work properly in Windows Vista, and includes many new functions (such as the dialog-box commands).

About the author: Serdar Yegulalp is editor of the Windows Insight, (formerly the Windows Power Users Newsletter), a blog site devoted to hints, tips, tricks and news for users and administrators of Windows NT, Windows 2000, Windows XP, Windows Server 2003 and Vista. He has more than 12 years of Windows experience under his belt, and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.

More information on this topic:

  • Tip: Top ten Windows Server 2003 command-line functions
  • Topics: Windows scripting
  • RSS: Sign up for our RSS feed to receive expert advice every day.

      Rate this Tip
      To rate tips, you must be a member of SearchWindowsServer.com.
      Register now to start rating these tips. Log in if you are already a member.




      Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



      RELATED CONTENT
      Windows Systems and Network Management Tools and Techniques
      Perfmon made easy with PAL utility
      Troubleshooting Windows application crashes or hangs
      Free Windows security tools every admin must have
      Top five Server Core management tips for Windows 2008
      Top free tools for Windows server administration
      A first look at Internet Information Services 7.0
      Windows registry hack improves offline file access for mobile users
      Reducing the size of network backups in Windows
      Monitor network bandwidth with CyberGauge
      How to format NTFS: More tricks to improve file system performance

      Windows Systems and Network Administration
      Troubleshooting Windows application crashes or hangs
      Converting VMware ESX machines to Hyper-V format
      Using DFSR for SYSVOL replication in Windows Server 2008
      Top 25 Windows PowerShell commands for administrators
      Key DFS improvements in Windows Server 2008 R2
      Free Windows security tools every admin must have
      Group Policy makes strides in Windows Server 2008 R2
      Quick tips for troubleshooting NTFS permissions
      Common causes of Windows server security vulnerabilities
      Cutting the cost of Windows identity and access management

      RELATED RESOURCES
      2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
      Search Bitpipe.com for the latest white papers and business webcasts
      Whatis.com, the online computer dictionary

      DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts