The most useful Windows CMD commands reference

by admin on March 10, 2011

Below is the list of commands that can be run from windows command prompt (CMD).  You can follow the link given for a command to see the syntax and examples.

At: Schedule tasks
Attrib: Set file attributes from command prompt
Bootcfg: Enable kernel debugging from command prompt
copy: Copy files from command prompt
Cls: Clear command window screen
Compact: Compress or decompress files and directories
Convert: Convert FAT filesystem to NTFS
Date: Set system date and time from command prompt
defrag: Defrag disk drives
Del: Delete files from command line
Dir: List files and directories
Eventquery.vbs: View events from command line
find: Search files for a given string
findstr: Search files for a given string; Has adavnced options than find command.
for: Windows batch command for looping
getmac: Find mac address of the system
hostname: Get system name from command prompt
ipconfig: Get IP address
logoff: Logoff user session from command prompt
Net user: Manage user accounts from command line
Net use: Create/List/Delete network drives
Net localgroup: Manage local computer’s user groups
Net share: Create / List/ Delete shares on the local computer
Powercfg: Manage power scheme on your laptop
Reg: Edit/create/delete registry keys from command line
Rename: Rename files/directories
Runas: Run an application as a different user in the same session
Schtasks: Schedule tasks
Shutdown: Shutdown or reboot system
Sort: Command for sorting text files
Systeminfo: Get computer information in command line
Taskkill: Kill processes from command prompt
time: Set system time
Title: Set command window title
Xcopy: Copy files and directories from command prompt

 

Resource Kit Tools:

Compress Compress a file from command prompt
Srvinfo Get remote system information
tail Print the last lines of a file
Ver Get Windows OS version

 

Other tools:

PsShutdown.exe Shutdown remote computer from command prompt

{ 3 comments… read them below or add one }

Anonymous May 10, 2011 at 6:14 pm

How to open command prompt when there is no Run box in the start menu

Reply

Anonymous October 4, 2011 at 6:12 pm

if you are using windows vista/7, then just type cmd.exe in search bar. If you are still in XP/2003, then navigate to c:\windows\system32\ folder and look for cmd.exe there.

Reply

Firefox264 October 12, 2011 at 3:59 am

Nice work. Very useful for Network admins and security experts. Thanks

Reply

Leave a Comment

Previous post:

Next post: