Common Computer Management commands
Fri, 20 Apr 2007 21:11:35 + 0800
Common Computer Management commands
Mstsc ------ Remote Desktop Connection
Logoff --------- logout command
NSLookup ------- IP address Detector
Netstat-An ---- (TC) command Check interface
Rononce-P ---- shutdown in 15 seconds
Chkdsk.exe ----- chkdsk disk check
Tsshutdn ------- 60 seconds countdown shutdown command
Lusrmgr. msc ---- local users and groups
Winchat -------- XP built-in LAN chat
Win + r key to open and run the command line
Sndrec32 ------- Recorder
Explorer ------- open the Resource Manager
Services. msc --- local service settings
Oobe/msobe/A ---- check whether XP is activated
Notepad -------- open notepad
Cleanmgr ------- ** organize
Net start messenger ---- start the Messenger Service
Compmgmt. msc --- Computer Management
Net stop messenger ----- stop the Messenger Service
Conf ----------- Start netmeeting
Dvdplay -------- DVD player
Charmap -------- start character ing table
Diskmgmt. msc --- disk Management Utility Program
Calc ----------- start Calculator
Dfrg. msc ------- disk fragment Program
Devmgmt. msc --- Device Manager
Drwtsn32 ------ system doctor
Dxdiag --------- check DirectX Information
Regedt32 ------- Registry Editor
Msconfig.exe --- System Configuration Utility
Rsop. msc ------- group policy result set
Mem.exe -------- Display memory usage
Regedit.exe ---- Registry
Progman -------- Program Manager
Winmsd --------- system information
Perfmon. msc ---- computer performance monitoring program
Winver --------- check the Windows version
SFC/scannow ----- scan for errors and restore
Taskmgr ----- Task Manager (2000/XP/2003)
Wmimgmt. msc ---- open windows management architecture (Wmi)
Wupdmgr -------- Windows Update Program
W script -------- Windows Script Host settings
Write ---------- WordPad
Winmsd --------- system information
Wiaacmgr ------- scanner and camera wizard
Mem.exe -------- Display memory usage
Msconfig.exe --- System Configuration Utility
Mplayer2 ------- simple Widnows Media Player
Mspaint -------- graphic Board
Mplayer2 ------- Media Player
Magnify -------- magnifier Utility
MMC ------------ open the Console
Mobsync -------- synchronization command
Dxdiag --------- check DirectX Information
Drwtsn32 ------ system doctor
Devmgmt. msc --- Device Manager
Dfrg. msc ------- disk fragment Program
Diskmgmt. msc --- disk Management Utility
Dcomcnfg ------- open the system component service
Ddeshare ------- enable DDE sharing settings
Dvdplay -------- DVD player
Net stop messenger ----- stop the Messenger Service
Net start messenger ---- start the Messenger Service
Notepad -------- open notepad
NSLookup ------- network management tool wizard
Ntbackup ------- system backup and Restoration
NARRATOR ------- "narrator" on the screen"
Ntmsmgr. msc ---- mobile Storage Manager
Ntmsoprq. msc --- mobile storage administrator Operation Request
Syncapp -------- create a briefcase
Sysedit -------- System Configuration Editor
Sigverif ------- file signature verification program
Sndrec32 ------- Recorder
Shrpubw -------- create a shared folder
Secpol. msc ----- Local Security Policy
Syskey --------- system encryption. Once encrypted, it cannot be unlocked. This protects Windows XP dual passwords.
Services. msc --- local service settings
Sndvol32 ------- Volume Control Program
Sfc.exe -------- System File Checker
SFC/scannow --- Windows File Protection
Tsshutdn ------- 60 seconds countdown shutdown command
Tourstart ------ XP introduction (roaming XP program displayed after installation)
Taskmgr -------- Task Manager
Eventvwr ------- Event Viewer
Eudcedit ------- Word Creation Program
Explorer ------- open the Resource Manager
Packager ------- object package
Perfmon. msc ---- computer performance monitoring program
Progman -------- Program Manager
Regedit.exe ---- Registry
Rsop. msc ------- group policy result set
Regedt32 ------- Registry Editor
Rononce-P ---- shutdown in 15 seconds
Regsvr32/u *. dll ---- stop DLL file running
Regsvr32/u zipfldr. dll ------ cancel zip support
Cmd.exe -------- cmd Command Prompt
Chkdsk.exe ----- chkdsk disk check
Certmgr. msc ---- Certificate Management Utility
Calc ----------- start Calculator
Charmap -------- start character ing table
Cliconfg ------- SQL Server Client Network Utility
Clipbrd -------- clipboard Viewer
Conf ----------- Start netmeeting
Compmgmt. msc --- Computer Management
Ciadv. msc ------ Indexing Service Program
Osk ------------ enable the Screen Keyboard
Odbcad32 ------- ODBC data source Manager
Oobe/msobe/A ---- check whether XP is activated
Lusrmgr. msc ---- local users and groups
Logoff --------- logout command
Iexpress ------- Trojan bundle tool, which comes with the System
Fsmgmt. msc ----- Shared Folder Manager
Utilman -------- auxiliary tool Manager
Gpedit. msc ----- Group Policy
1. The most basic and common test is to test the physical network Ping 192.168.0.8-T. The parameter-T is waiting for the user to interrupt the test.
2. View DNS, IP, Mac, etc.
A. Win98: winipcfg
B. Win2000 or above: ipconfig/all
C. NSLookup: for example, view the DNS in Hebei
C: \> NSLookup
Default Server: ns.hesjptt.net.cn
Address: 202.99.160.68
> Server 202.99.41.2: Change DNS to 41.2
> Pop.pcpop.com
Server: ns.hesjptt.net.cn
Address: 202.99.160.68
Non-Authoritative Answer:
Name: pop.pcpop.com
Address: 202.99.160.212
3. Network Messenger (frequently asked ~)
Net send computer name/IP | * (broadcast) transmits content, note that it cannot cross-network segment
Net stop messenger stops the messenger service, or you can modify the service on the panel.
Net start messenger starts the Messenger Service
4. Detect the peer computer name, group, domain, and current user name (Working Principle of tracing)
Ping-a ip-t to display only NetBIOS names
NBTSTAT-A 192.168.10.146
5. netstat-A displays all the ports opened by your computer. netstat-s-e displays your network information in detail, including statistics on TCP, UDP, ICMP, and IP addresses.
6. Check the ARP binding (Dynamic and Static) list. All the computers connected to me are displayed.
ARP-
7. On the proxy server side
Bind IP addresses and MAC addresses to prevent IP address theft in the LAN! :
ARP-s 192.168.10.59 00-50-ff-6c-08-75
Unbind the IP address of the NIC from the MAC address:
ARP-d nic ip Address
8. Hide your computer on the network neighbor (to make people invisible to you !)
Net config server/hidden: Yes
Net config server/hidden: No is enabled
9. Several net commands
A. The net view of the current workgroup server list is displayed. When you use this command without the option, it displays the list of computers in the current domain or network.
For example, you can view the shared resources on this IP address.
C: \> net view 192.168.10.8
Share resources on 192.168.10.8
Resource Sharing name type usage comment
--------------------------------------
Website Service Disk
The command is successfully completed.
B. view the user account list on the computer. Net user
C. view the network connection. net use
For example, net use Z: \ 192.168.10.8 \ movie maps the movie shared directory of this IP address to a local Z disk.
D. Record the link to the net session
For example:
C: \> net session
Computer User Name customer type open idle time
------------------------------------------------
\ 192.168.10.110 Rome Windows 2000 2195 0 00:03:12
\ 192.168.10.51 Rome Windows 2000 2195 0 00:00:39
The command is successfully completed.
10. Route Tracking command
A. tracert pop.pcpop.com
B. In addition to displaying routes, pathping pop.pcpop.com also provides S analysis to calculate the % of the dropped packets.
11. Several commands on shared security
A. view the shared resources of your machine. NET Share
B. manually delete the share (you can compile a BAT file, start the instance and run it, and delete all the shares !)
NET Share C $/d
NET Share d $/d
NET Share IPC $/d
NET Share ADMIN $/d
Note that there is a space after $.
C. Add a share:
C: \ net share mymovie = E: \ downloads \ movie/users: 1
Mymovie is shared successfully.
At the same time, the number of connected users is limited to 1.
12. Set static IP addresses in DOS lines
A. Set static IP addresses
CMD
Netsh
Netsh> int
Interface> ip
Interface ip> set Add "Local Link" static IP Address Mask Gateway
B. View IP settings
Interface ip> show address
ARP
Displays and modifies the items in the "Address Resolution Protocol (ARP)" cache. The ARP cache contains one or more tables, which are used to store IP addresses and Their resolved physical IP addresses over Ethernet or card rings. Each Ethernet or ring network adapter installed on the computer has its own independent table. If no parameters are available, the ARP command displays help information.
Syntax
ARP [-A [inetaddr] [-N ifaceaddr] [-G [inetaddr] [-N ifaceaddr] [-D inetaddr [ifaceaddr] [-s inetaddr etheraddr [ifaceaddr]
Parameters
-A [inetaddr] [-N ifaceaddr]
Displays the current ARP cache table for all interfaces. To display the ARP cache entry of the specified IP address, use ARP-A with the inetaddr parameter. inetaddr here represents the specified IP address. To display the ARP cache table for the specified interface, use the-n ifaceaddr parameter. ifaceaddr here represents the IP address assigned to the specified interface. The-N parameter is case sensitive.
-G [inetaddr] [-N ifaceaddr]
Same as-.
-D inetaddr [ifaceaddr]
Delete the specified IP address. inetaddr here represents the IP address. To delete an item in a table for the specified interface, use the ifaceaddr parameter. ifaceaddr here represents the IP address assigned to the interface. To delete all items, use the asterisk (*) wildcard to replace inetaddr.
-S inetaddr etheraddr [ifaceaddr]
Add a static entry that parses the IP address inetaddr into the physical address etheraddr to the ARP cache. To add a static ARP cache entry to the table of the specified interface, use the ifaceaddr parameter. ifaceaddr here represents the IP address assigned to the interface.
/?
Display help at the command prompt.
Note
The IP addresses of inetaddr and ifaceaddr are represented in decimal notation with dots.
The physical address etheraddr consists of six bytes, which are expressed in hexadecimal notation and separated by hyphens (for example, 00-aa-00-4f-2a-9c ).
The items added through the-S parameter are static items that do not time out in the ARP cache. If the TCP/IP protocol is terminated and then started, these items will be deleted. To create a permanent static ARP cache entry, use the appropriate ARP command in the batch processing file and run the batch processing file at startup through the scheduler program.
This command is available only when the Internet Protocol (TCP/IP) is installed as a component of the network adapter attribute in a network connection.
Example
To display the ARP cache tables for all interfaces, type:
ARP-
For an interface with the assigned IP address 10.0.0.99, to display its ARP cache table, type:
ARP-a-n 10.0.0.99
To add a static ARP cache entry that resolves the IP address 10.0.0.80 to the physical address 00-aa-00-4f-2a-9c, type:
ARP-s 10.0.0.80 00-aa-00-4f-2a-9c
At
It is planned to run commands and programs on the computer at the specified time and date. The at command can only be used when the "scheduler" service is running. If you use it without parameters, at lists the scheduled commands.
Syntax
At [\ computername] [{[ID] [/delete] |/Delete [/Yes]}]
At [[\ computername] hours: minutes [/interactive] [{/every: Date [,...] |/next: Date [,...]}] command]
Parameters
\ Computername
Specify a remote computer. If this parameter is omitted, the at program plans commands and programs on the local computer.
ID
The identifier assigned to the scheduled command.
/Delete
Cancels scheduled commands. If the ID is omitted, all scheduled commands on the computer are canceled.
/Yes
When a scheduled event is deleted, all requests from the system are answered with "yes ".
Hours: minutes
Specifies the time when the command is run. The time is in the 24-hour format (from [Midnight].
/Interactive
For a user logging on when running a command, the command can interact with the user's desktop.
/Every:
Run the command on the specified day of each week or month (for example, every Thursday or the third day of each month.
Date
Specifies the date on which the command is run. You can specify a day or multiple days of a week (that is, type M, T, W, Th, F, S, su) or a day or multiple days of a month (that is, enter a number from 1 to 31 ). Multiple date items are separated by commas. If date is omitted, at uses the current day of the month.
/Next:
Run Command when the next specified date (for example, next Thursday) arrives.
Command
Specify the Windows Command Execution program (.exe or. com file) or batch processing program (. bat or. CMD file) to run ). When the Command needs a path as a parameter, use the absolute path, that is, the entire path starting from the drive letter. If the command is on a remote computer, specify the Universal Naming Convention (UNC) symbol for the server and shared name, instead of the remote drive letter.
/?
Display help at the command prompt.
Note
Schtasks is a more powerful superset command line planning tool that contains all the functions in the AT command line tool. Schtasks can be used to replace at for all command line scheduled tasks. For more information about schtasks, see related topics ".
Use
When using the AT command, you must be a member of the local Administrators Group.
Load cmd.exe
Before running the command, at will not automatically load cmd.exe (command interpreter ). If the executable file (.exe) is not run, you must use the following method to specifically load cmd.exe at the beginning of the command:
CMD/C dir> C: \ test. Out.
View scheduled commands
When at is used without the command line option, the scheduled task will appear in a table similar to the following format:
Status ID day Time Command Line
OK 1 each F 4: 30 pm net send group leads status due
OK 2 each M 12:00 am chkstor> check. File
OK 3 each f :59 PM backup2.bat
ID)
When you use an AT command with an ID, the information of a single task item is displayed in a format similar to the following:
Task ID: 1
Status: OK
SCHEDULE: Each F
Time of day: 4: 30 pm
Command: net send group leads status due when you plan commands with at (especially commands with command line options, you need to check whether the command syntax is entered correctly by typing at without the command line option. If the information displayed in the "command line" column is incorrect, delete the command and re-type it. If the command is not correct, you can re-type the command with fewer command line options.
View results
Use the scheduled at command to run the program as the background program. The running result is not displayed on the computer. To redirect the output to a file, use the redirection symbol (> ). If you want to redirect the output to a file, you must use the Escape Character (^) before the redirection symbol, whether in the command line or in the batch file ). For example, to redirect the output to the output. Text File, type:
At c: \ test. Bat ^> C: \ output.txt
The current directory for executing commands is the systemroot folder.
Change System Time
After you use the AT command to plan the command to run, if you change the system time of the computer, you can synchronize the at scheduler with the modified system by typing an AT program without the command line option.
Storage commands
Scheduled commands are stored in the registry. In this way, if you restart the "scheduler" service, the scheduled task will not be lost.
Connect to the network drive
Do not use a directed drive for scheduled jobs that need to access the network. The scheduler service may not be able to access these redirected drives, or the redirected drives may not appear if other users log on when the scheduled task is running. Therefore, use the UNC path for scheduled jobs. For example:
At PM my_backup \ Server \ share
Do not use the following syntax (where X :? Indicates the connection established by the user ):
At PM my_backup X:
If an AT command using the drive letter is scheduled to connect to the shared directory, an AT command should be included to disconnect from the drive when the drive is complete. If you cannot disconnect from the drive, the assigned drive letter is unavailable at the command prompt.
Example
To display the list of scheduled commands on the marketing server, type:
At \ Marketing
To learn more about the command 3 on the server Corp, type:
At \ Corp 3
To plan to run the network sharing command on the corp server at AM and redirect the list to the corp.txt file of the maintenance server (under the reports shared directory), type:
At \ Corp 08:00 CMD/C "net share reports = D: \ marketing \ reports >>\\ maintenance \ reports \ corp.txt"
To back up the hard drive of the marketing server to the tape drive at midnight every five days, first create the name archive. CMD's batch processing program (which contains backup commands), and then plan the running of the batch processing program. For this reason, type:
At \ marketing/every: 5, 10, 15, 20, 25, 30 Archive
To cancel all scheduled commands on the current server, clear the at plan information as follows:
At/delete
If the command to be run is not an executable (.exe) file, use CMD/C to load cmd.exe before the command as follows:
CMD/C dir> C: \ test. Out.
Rsh
Run commands on the remote computer that runs the RSH service. Windows XP and Windows 2000 do not provide the RSH service. Windows 2000 Server Resource Kit provides the RSH service named rshsvc.exe. Use RSH without parameters to display help.
Syntax
Rsh [host] [-l username] [-N] [command]
Parameters
Host
Specifies the remote computer that runs the command.
-L Username
Specifies the user name used on the remote computer. If this parameter is omitted, the name of the currently logged on user is used.
-N
Redirects the RSH input to a null device. This prevents display of local computer command results.
Command
Specify the command to run.
/?
Display help at the command prompt.
Note
NSLookup ------- IP address Detector
Explorer ------- open the Resource Manager
Logoff --------- logout command
Tsshutdn ------- 60 seconds countdown shutdown command
Lusrmgr. msc ---- local users and groups
Services. msc --- local service settings
Oobe/msobe/A ---- check whether XP is activated
Notepad -------- open notepad
Cleanmgr ------- ** organize
Net start messenger ---- start the Messenger Service
Net stop messenger ----- stop the Messenger Service
Conf ----------- Start netmeeting
Dvdplay -------- DVD player
Charmap -------- start character ing table
Calc ----------- start Calculator
Dfrg. msc ------- disk fragment Program
Chkdsk.exe ----- chkdsk disk check
Devmgmt. msc --- Device Manager
Drwtsn32 ------ system doctor
Rononce-P ---- shutdown in 15 seconds
Rsop. msc ------- group policy result set
Mem.exe -------- Display memory usage
Winmsd --------- system information
Winver --------- check the Windows version
SFC/scannow ----- scan for errors and restore
Wupdmgr -------- Windows Update Program
Winmsd --------- system information
Winchat -------- XP built-in LAN chat
Mstsc ---------- Remote Desktop Connection