Windows practical commands

Source: Internet
Author: User

1. Group Policy

# Enable the Group Policy editing page
# Input in the command line or running Column
Gpedit. MSC

2. Ad Domain Configuration Wizard


# Active Directory (Active Directory) configuration command, prerequisite for Domain Configuration
# Input in the command line or running Column
Dcpromo

3. Service management commands


# Input in the command line or running Column
# For detailed parameters of this command, use SC /? View
SC

4. Windows performance data acquisition command

# Input in the command line or running Column
# This command displays data containing the "network" field in all the performance data.
Typeperf-QX | find "network"

Note: The following content comes from Microsoft's help and support
========================================================== ======================================

Typeperf.exe


You can use the typeperf.exe tool to complete the following operations:

  • Write performance data to the Command window or to a supported log file format.
  • Displays all currently available counters on a specific local or remote computer.
Example


You can useTypeperf "memory \ available bytes"-S xppro-SiCommand.

5. Network

# Network path tracking
# Tracing network devices from the local machine to www.google.com
Tracert www.google.com

6. Relatively less use of other items

# System File Checker (common parameters SFC/scannow can be used to check whether system files are tampered)
Sfc.exe
# Start netmeeting
Conf

7. Search for the host name through IP Address

NBTSTAT-a ip Address
Ping-a ip Address

8. view the Network Ports enabled by the System

Netstat-
# If you want to check which program opened the port, you can use
Netstat-anb
# However, please note that this command will get data slowly

9. Restore files from the system installation disc

Search for damaged files on the Windows XP installation disk. Note that the last character of the file name should be replaced by the bottom line "_". For example, if you want to search for movie notepad.exe, you must use "notepad. ex _ "to search.
After searching, open the command line mode (enter "cmd" in "Run") and enter "Expand full path of the source file to the target file ". For example, expand D: \ Setup \ notepad. ex _ c: \ windows \ notepad. EXE. Note that if there are spaces in the path, you need to include the path in double quotation marks (quotation marks.
The search is of course the best, but sometimes we cannot find the files we need in the Windows XP drive. One reason for this is that the file to be searched is in the "cab" file. Because Windows XP regards "cab" as a folder, for Windows XP, you only need to drag the "cab" file right and copy it to the corresponding directory.
If you are using another Windows platform, search for the "cab" file containing the target file name. In command line mode, enter "full path of the cab file in the target location of extract/L", for example, extract/l c: \ windows d: \ i386 \ driver. Cab notepad.exe. As before, if there is space in the path, you need to use double quotation marks to include the path.

10. Configure startup items

Msconfig

11. adjust system services through the command line

SC config service name start = auto

Net start service display name

 

 

 

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.