The Windows 2000 Command Console
is a major Windows recovery
utility that comes installable after you set up Windows. What it allows you to do is to accomplish
many tasks such as disabling troublesome
services before startup, fix hard drive
and boot record
s (your machine does not have to be able to boot to drop into this), formatting, etc. It is an excellent secure recovery mechanism
, for many types of problems. (It still won't help if you've lost your administrator password
To drop into the command console
, take the Windows 2000 server
cd, and boot off of it (you can use a floppy disk
, and then boot to CD
, either way). Choose Recovery Install
by pressing R, and then console by pressing C.
- or -
When in Windows, put the cd in the drive and type the following command:
<drive of cd>:\i386\winnt32.exe /cmdcons
This will install it as a startup option in NTLDR
. You can chose Recovery Console
as a startup option
(this will require a reboot
for some odd reason).
allows you to fix numerous problems with both Win2k
and WinNT 4.0
(should you decide to do this). Upon loading up the command console
(it's really safe, but really slow), it will show you the list of detected Win2k installation
s, and will ask you which ones you'd like to log into. You will need the local Administrator password
, and then you are in. It drops you to a simple (single user
-esque) shell. Nothing fancy, no UI
, but you are in the underbelly of the beast
Available commands are:
- attrib Same as the DOS command (and similar to chmod), it changes the attributes of the file in question (read only, system, hidden, compressed)
- batch Kicks off a batch file
- chdir / cd Changes a working directory
- chkdsk Same as chkdsk in Windows, it searches the disk for errors (or can schedule a check on next boot)
- cls Clears the terminal screen, per the old DOS command
- copy Copies one file to another location
- delete / del Deletes a file; works exactly like it did in DOS
- dir Displays a list of files and directories.
- disable Disables a service or device driver. This is great to help fix troubles with blue screens on start because of bad resident drivers
- diskpart Allows you to modify the disk partitions
- enable The counterpart to disable, enable attempts to start a device or service.
- exit Exit ends the console session, dropping you out to a reboot.
- expand Expands a .cab file
- fixboot The very useful fixboot command fixes the boot record of a drive.
- fixmbr With fixmbr, you can repair a damaged master boot record. This is hard because the recovery console may not be able to find your Windows installation, without a valid MBR. This will blow away any changes you've made to your MBR, including LILO, GRUB, System Commander, or what not.
- format Formats a drive, as per the DOS command
- help Lists a howto on a particular command
- listsvc Lists all the installed services (including some of the normally hidden ones)
- logon Logs you on to an installation
- map Shows the mapping of the drive letters to physical devices. It's interesting to note that NT lists their devices very similar to the way UNIX does internally
- mkdir / md Creates a directory
- more / type Displays a text file. A text stream can also be piped into this command
- rename / ren Renames a file
- rmdir / rd Removes a directory (same as DOS)
- set Same as in DOS, sets an environment variable. Just typing set will list the current variables.
- systemroot This command allows you to change the install point of Windows 2000.
Just as in UNIX
, the best way to learn NT
, and how it really works is to get in on the underbelly and mess around with it. The command console
is a great way to learn more about Windows NT, services, devices, and good recovery techniques, in case something goes horribly wrong
. It's a neat, oftentimes overlooked administration
feature that really helps you to learn more about your computer