Windows CMD Commands

6

Explorer.exe – Windows CMD Command

Command-line switches that you can use to open the GUI Windows Explorer (Explorer.exe). Quotation marks are required if the File/Folder object contains spaces or symbols.Explorer.exe is normally found in the Windows folder, typically C:\Windows\Explorer.exe

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 1

EXPAND – Windows CMD Command

Uncompress one or more compressed .CAB cabinet files. The Microsoft File Expansion Utility dates back to MS-DOS 5 in 1990 supplied on floppy disc. Versions of Expand prior to 6.0 (Windows 7) have buggy...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 1

EXIT – Windows CMD Command

Quit the current batch script, quit the current subroutine or quit the command processor (CMD.EXE) optionally setting an errorlevel code. To close an interactive command prompt, the keyboard shortcut ALT + F4 is an alternative to...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 0

ENDLOCAL – Windows CMD Command

End localization of environment changes in a batch file. Pass variables from one batch file to another. If SETLOCAL is used to make variables ‘local’ to one batch script, then those variables will be invisible to...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 3

ECHO – Windows CMD Command

Display messages on screen, turn command-echoing on or off. Type ECHO without parameters to display the current echo setting (ON or OFF). In most batch files you will want ECHO OFF, turning it ON...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 2

DSMOVE.exe – Windows CMD Command

Rename or Move an active directory object (user, computer, group..) to a different Organisational Unit (OU). By default, DSMOVE connects the computer to the domain controller in the logon domain. For any DS command,...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 0

DSMOD.exe – Windows CMD Command

Modify active directory object. RedirectionYou can pipe results from DSQUERY into DSMOD in order to modify an object. If the DN contains any commas or backslashes you will need to redirect to a file first and...

A-Z-List-Of-Windows-CMD-Commands-Also-Included-CMD-Commands 1

DSQUERY.exe – Windows CMD Command

Search for an active directory object. Commas within a CN must be escaped with the backslash \ character CN=Company\, Incorporated… Escape Backslashes with a second backslash CN=Sales\\ Latin America… If any value contains spaces, use quotation...