Windows XP Console Commands-auxiliary operations and special function commands

Source: Internet
Author: User

Editor's note:
Windows XP (including Windows 2000) console commands are a very effective tool for diagnosing and testing and restoring system functions in some unexpected situations. Xiaobian has always wanted to make a summary of the commands in this regard. This hard-working old fan sorted out this practical secret.

CLS

Clear the screen.

Only the command prompt and insertion point are displayed on the cleared screen.

Disable

Disable Windows XP, Windows 2000, or Windows NT 4.0 system services or device drivers. The disable command is only available when you use the fault recovery console.

Disable {SERVICE_NAME] | [device_driver_name}

Parameters

SERVICE_NAME

The name of the System Service to be disabled.

Device_driver_name

The name of the device driver to disable.

Example

In the following example, the EventLog Service is Disabled:

Disable EventLog

Note:

The disable command sets the Startup Type of the specified service or driver to service_disabled.
When you disable a system service or device driver by using the disable command, the name of the last Startup Type of the system service or device driver will be displayed on the screen. You should write down the name so that you can use the enable command to restore the Startup type to the previous setting as needed.
There are five startup types. The first three types are service_auto_start, service_disabled, and service_demand_start. The corresponding standard start type: automatic, disabled, and manual, usually configured using the "service" in the "Computer Management" management tool. The last two types are service_boot_start and service_system_start, which are usually used to configure the method for loading the device driver. For example, load a file when the computer is started or when Windows is started.
Enable

Enable Windows XP, Windows 2000, or Windows NT 4.0 system services or device drivers. The enable command is only available when the fault recovery console is used.

Enable {SERVICE_NAME | device_driver_name} [startup_type]

Parameters

SERVICE_NAME

Name of the System Service to be enabled.

Device_driver_name

The name of the device driver to be enabled.

Startup_type

The Startup type to assign to the service or device driver. Valid start types include:

Service_boot_start
Service_system_start
Service_auto_start
Service_demand_start
Example

In the following example, set the start type of the EventLog service to automatic or service_auto_start:

Enable EventLog service_auto_start

Note:

If no Startup type is specified, the enable command lists the current startup types of the service or device driver specified in SERVICE_NAME.
When you use the enable command to change the Startup type, the name of the last Startup type is displayed on the screen. You should write down the name to restore the Startup type to the previous setting as needed.
Exit

Disable the Recovery Console and restart the computer. The exit command is only available when the "Recovery Console" is used.

Exit

None

Help

Provides online information about the Recovery Console Commands.

Help [commandname]

None

Lists the commands provided in the Recovery Console.

Commandname

Provides command information, including command parameters.

Note:

There are two ways to get the command online help. You can specify the command name after the HELP command, or enter the command name and/? In the command prompt /?. Switch. For example, enter the following command to obtain information about the extract command:
Help extract
Extract /?

Listsvc

Lists the services and drivers that can be used on a computer. The listsvc command is only available when you use the fault recovery console.

Listsvc

None

Logon

Log on to Windows for installation. The logon command is only available when you use the fault recovery console.

Logon

None

Note:

The logon command will list all detected Windows installations. You need to install the local administrator password to log on.
If all three logon attempts fail, the fault recovery console exits and the computer restarts.
Net use

Connect the network share to the drive letter. The net use command containing the following parameters is only available when the fault recovery console is used. You can use the net use command with different parameters at the command prompt.

Syntax

Net use [// computername/sharename [/User: [domainname/] username] Password] | [Drive
Letter:] [/D]

Parameters

// Servername/sharename

Specify the name of the server and shared resource. If computername contains blank characters, the computer name is enclosed by quotation marks (") from the double backslash (//) to the end of the computer name. The computer name can be 1 to 15 characters in length.

/User

The username used to establish the connection.

Domain Name

The domain name used to confirm the user's creden.

User Name

Specifies the username used for logon.

Password

Password required to access shared resources. If you do not enter a password, a prompt is displayed. The password is not displayed when you type the password in the password prompt line.

/D

Indicates that the connection will be enabled continuously.

Set

Display and set the environment variables of the "Recovery Console. The SET command is an optional command that must be used with the security template.

The SET command with different parameters is only available when you use the fault recovery console. You can use the set command with different parameters at the command prompt.

Set [variable = [String]

Parameters

Variable

Specify the variables to be set or modified.

The Recovery Console supports the following environment variables:

Variable description
Allowwildcards allows some commands (such as del commands) to support wildcards.
Allowallpaths allows access to all files and directories on the system.
Allowremovablemedia allows you to copy files to removable media, such as a floppy disk.
No prompt is displayed when nocopyprompt overwrites an existing file.

String

Specifies the string to be associated with the specified variable.

Example

In the following example, wildcards can be used in some recovery console commands:

Set allowwildcards = true

Specifies the location and name of the directory to be deleted. Wildcard characters are not allowed.

Note:

The directory must be empty. Otherwise, the command fails.
Rmdir is only applicable to the current Windows installation system directory, removable media, hard disk partition root directory, or local installation source.
Systemroot

Set the current directory to the SYSTEMROOT folder of the Windows installation system that the user logs on. The systemroot command is only available when you use the fault recovery console.

Systemroot

None
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.