Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 20, 2000 12:00 AM

Win2K Command-Line Utilities

Windows IT Pro
InstantDoc ID #16250
Rating: (2)
Command-prompt wizardry

Windows 2000 offers a vast toolkit full of impressive utilities and applets. In the December 2000 Top 10, I looked at Win2K's most valuable graphical utilities. This time, I unveil the 10 most useful Win2K utilities that you run from the command line.

10. FTP (ftp.exe) remains the workhorse of Win2K command-line utilities. When you type ftp at a command prompt, you open the FTP command shell, which you can use to send files to and receive files from remote systems. Using the —s switch, you can run FTP in batch mode, in which the FTP client reads all the FTP subcommands from the contents of a text file.

9. The Telnet client (telnet.exe), a graphical utility in Windows NT, is a character-based tool in Win2K. Although this change might not seem like a step forward, Microsoft has also enhanced Win2K's Telnet client with NT LAN Manager (NTLM) authentication support.

8. Microsoft System Information (msinfo32.exe) lets you use the command line to obtain system information. Although Windows Microsoft Diagnostics (WinMSD—winmsd.exe) is the primary NT 4.0 tool for retrieving system information, Microsoft has converted Win2K's version of WinMSD into a graphical Microsoft Management Console (MMC) snap-in. To retain command-line functionality, remember to include the full path to the executable file when you run msinfo32.exe:

"C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" /?

Otherwise, the system will bring up the new WinMSD snap-in.

7. The Infrared File Transfer Program (IRFTP—irftp.exe) utility gives you the opportunity to fire up your system's dormant infrared port. Irftp establishes a wireless infrared connection with another computer so that you can, for example, exchange files between a PC and your laptop.

6. The msiexec.exe component of Windows Installer gives you a command-line interface to the Windows 2000 Installer so that you can perform installation-related tasks such as copying files, updating the registry, and creating shortcuts. Msiexec.exe reads its installation information from an installation package (i.e., an .msi file) that contains specific instructions for installing, updating, or uninstalling a Windows application.

5. The Application Compatibility utility (apcompat.exe) lets you run applications written for earlier Windows versions. Simply fire up the tool, identify the legacy program you want to run, and enter the Windows version that you want the OS to report to the application.

4. The System File Checker (sfc.exe) scans and verifies all protected system files. If someone has changed a system file, sfc.exe can replace the modified file with the version of the system file that is saved in the \%systemroot%\system32\dllcache folder.

3. The Cipher command-line tool (cipher.exe) lets you encrypt, decrypt, or display a file or folder's encryption information. You can also use cipher.exe to find out who has encrypted a specific file or folder.

2. PathPing (pathping.exe) is a new tool that combines features of NT 4.0's Ping and Tracert commands. PathPing can tell you whether you're experiencing data loss at one or more router hops on the way to a target host. To do so, the utility sends Internet Control Message Protocol (ICMP) packets to each router in the path.

1. The Recovery Console (RC) lets you recover your system from DLL corruption errors and other file-related system problems. You can boot your system to a command window with complete NTFS support. The RC doesn't install by default; you install the utility by running the \i386winnt32.exe /cmdcons command. To run the RC, select the Recovery Console option from the system boot options menu, which displays at system startup.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Aug 23, 2005

    I am always looking to run commands and utilites on remote computers (in my office) such as MSInfo, NetSat, etc. and have the output combe on my machine (for remote management, diagnostics, etc.). Where can I find such commands?

  • Anonymous User
    7 years ago
    Jan 06, 2005

    concise and yet informative-you mentioned several interesting programs i didn't previously know about. i'm looking forward to reading more of your articles in the future.

    i did wonder however just how secure cipher was.

    thanks.

  • Ashish Smith
    8 years ago
    Jul 08, 2004

    Your Comments (required): Hi Everyone lets c if some one can help me. I want to execute a batch file through my workstation running a batch file or script.

  • Mike Jerik
    8 years ago
    May 24, 2004

    Are the xp cmd tools dsquery,etc. available to use on W2K or only W2k3 and XP?

  • reg
    8 years ago
    May 16, 2004

    For an example of an ftp script look up symantec document id 2002091816510548 . The "cegetter.bat" and "cescript.txt" are what you're after. One downside of ftp.exe is it won't work in passive mode. If you need that, then batchftp is a freebie low end ftp client that you can also schedule.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.