Chào các bạn , hôm nay mình sẽ viết bài tổng hợp các lệnh cơ bản trong Windows sử dụng cửa sổ command line cực kì quen thuộc và ” dễ thương” với tất cả chúng ta từ khi bắt đầu học vi tính tới giờ nhé 🙂
Nhớ lại hồi học cấp 2 , những năm lớp 6 ( khoảng năm 1999) mỗi lần đi học là gặp cái màn hình đen thùi lui của Ms-Dos và chạy các lệnh tạo xóa sửa thư mục đơn giản như md ,rd ,copy ,…. và chỉ mong tới giờ nghỉ để chơi Mario or Dave 😛 vì mấy cái lệnh đơn điệu và nhàm chán quá 😀
![dave2](https://mdungblog.wordpress.com/wp-content/uploads/2016/07/dave2.gif?w=900)
Chit chat ôn lại tuổi thơ tí thôi 😛 – giờ vào vấn đề chính nhé 🙂
Khi đi làm và nhất là làm Admin , ngoài việc triển khai hoặc setup hệ thống ,đảm bảo mạng chạy ổn đinh thì phần lớn thời gian còn lại là fix các lỗi trên trời dưới đất của user liên quan tới hệ điều hành phổ biến nhất từ trước tới này là Windows OS.
Với mỗi phiên bản Windows ( 7-8.1-10) hay thậm chí có 1 số nơi vẫn còn dùng XP thì việc để mở ra các chương trình một cách nhanh và thuận tiện thay vì phải nhớ đường dẫn or click chuột để mở thao tác sẽ chậm và lâu hơn.
1 ví dụ đơn giản là khi máy tính không kết nối được Internet và bạn cần kiểm tra thông số card mạng của máy tính thay vì phải vào Control Panel -> Network and Internet -> Network and Sharing Center -> Change adapter settings or như trong Windows 10 thì Start -> Settings -> Network & Internet -> Ethernet or Wifi -> Change adapter options thì các bạn chỉ cần mở cửa sổ Run ( phím windows + r) or cửa sổ cmd và gõ ncpa.cpl
Trên đây chỉ là 1 ví dụ về lợi ích của việc sử dụng các lệnh với CMD or cửa sổ run , mình sẽ liệt kê bên dưới các lệnh sử dụng trong cmd ( các lệnh này tương thích hầu hết với các hệ điều hành Windows ( XP-7-8-10).Lưu ý: có một số lệnh cần phải viết hoa theo như bảng dưới nhé 🙂
Bảng 148 lệnh CMD cơ bản hay dùng trên Windows OS
STT | Lệnh CMD | Chức năng của lệnh |
1 | winver | Xem thông tin về windows |
2 | devicepairingwizard | Thêm 1 thiết bị Device |
3 | hdwwiz | Thêm Hardware Wizard |
4 | netplwiz | Thiết lập thông tin tài khoản Windows |
5 | azman | Quản lý Authorization Manager |
6 | sdclt | Backup resoter Restore |
7 | fsquirt | Chuyển file Bluetooth |
8 | calc | Máy tính Calculator |
9 | certmgr | Quản lý Certificates |
10 | systempropertiesperformance | Thay đổi các thiết lập hiển thị của windows |
11 | systempropertiesdataexecutionprevention | Change Data Execution Prevention Settings |
12 | printui | Thay đổi thiết lập máy in |
13 | charmap | Character Map |
14 | cttune | ClearType Tuner |
15 | colorcpl | Quản lý màu sắc |
16 | cmd | Cửa sổ dòng lệnh CMD |
17 | comexp | Component Services |
18 | dcomcnfg | Component Services |
19 | compmgmt | Computer Management |
20 | compmgmtlauncher | Computer Management |
21 | netproj | Connect to a Network Projector |
22 | displayswitch | Connect to a Projector |
23 | control | Control Panel |
24 | shrpubw | Create A Shared Folder Wizard |
25 | recdisc | Create a System Repair Disc |
26 | credwiz | Credential Backup and Restore Wizard |
27 | systempropertiesdataexecutionprevention | Data Execution Prevention |
28 | locationnotifications | Default Location |
29 | devmgmt | Device Manager |
30 | devicepairingwizard | Device Pairing Wizard |
31 | msdt | Diagnostics Troubleshooting Wizard |
32 | tabcal | Digitizer Calibration Tool |
33 | dxdiag | DirectX Diagnostic Tool |
34 | cleanmgr | Disk Cleanup |
35 | dfrgui | Disk Defragmenter |
36 | diskmgmt | Disk Management |
37 | dpiscaling | Display |
38 | dccw | Display Color Calibration |
39 | displayswitch | Display Switch |
40 | dpapimig | DPAPI Key Migration Wizard |
41 | verifier | Driver Verifier Manager |
42 | utilman | Ease of Access Center |
43 | rekeywiz | Encrypting File System Wizard |
44 | eventvwr | Event Viewer |
45 | fxscover | Fax Cover Page Editor |
46 | sigverif | File Signature Verification |
47 | gettingstarted | Getting Started |
48 | iexpress | IExpress Wizard |
49 | wabmig* | Import to Windows Contacts |
50 | iscsicpl | iSCSI Initiator Configuration Tool |
51 | iscsicpl | iSCSI Initiator Properties |
52 | lpksetup | Language Pack Installer |
53 | gpedit | Local Group Policy Editor |
54 | secpol | Local Security Policy |
55 | lusrmgr | Local Users and Groups |
56 | locationnotifications | Location Activity |
57 | magnify | Magnifier |
58 | mrt | Malicious Software Removal Tool |
59 | rekeywiz | Manage Your File Encryption Certificates |
60 | mip* | Math Input Panel |
61 | mmc | Microsoft Management Console |
62 | msdt | Microsoft Support Diagnostic Tool |
63 | napclcfg | NAP Client Configuration |
64 | narrator | Narrator |
65 | wiaacmgr | New Scan Wizard |
66 | notepad | Mở Notepad |
67 | odbcad32 | ODBC Data Source Administrator |
68 | odbcconf | ODBC Driver Configuration |
69 | osk | On-Screen Keyboard |
70 | mspaint | Paint |
71 | perfmon | Performance Monitor |
72 | systempropertiesperformance | Performance Options |
73 | dialer | Phone Dialer |
74 | presentationsettings | Presentation Settings |
75 | printmanagement | Print Management |
76 | printbrmui | Printer Migration |
77 | printui | Printer User Interface |
78 | eudcedit | Private Character Editor |
79 | psr | Problem Steps Recorder |
80 | dpapimig | Protected Content Migration |
81 | regedit | Registry Editor |
82 | rasphone | Remote Access Phonebook |
83 | mstsc | Remote Desktop Connection |
84 | resmon | Resource Monitor |
85 | rsop | Resultant Set of Policy |
86 | syskey | Securing the Windows Account Database |
87 | services | Services |
88 | computerdefaults | Set Program Access and Computer Defaults |
89 | shrpubw | Share Creation Wizard |
90 | fsmgmt | Shared Folders |
91 | snippingtool | Snipping Tool |
92 | soundrecorder | Sound Recorder |
93 | cliconfg | SQL Server Client Network Utility |
94 | stikynot | Sticky Notes |
95 | credwiz | Stored User Names and Passwords |
96 | mobsync | Sync Center |
97 | msconfig | System Configuration |
98 | sysedit (This command doesn’t work in the 64-bit version of Windows.) | System Configuration Editor |
99 | msinfo32 | System Information |
100 | systempropertiesadvanced | System Properties (Advanced Tab) |
101 | systempropertiescomputername | System Properties (Computer Name Tab) |
102 | systempropertieshardware | System Properties (Hardware Tab) |
103 | systempropertiesremote | System Properties (Remote Tab) |
104 | systempropertiesprotection | System Properties (System Protection Tab) |
105 | rstrui | System Restore |
106 | tabtip* | Tablet PC Input Panel |
107 | taskmgr | Task Manager |
108 | taskschd | Task Scheduler |
109 | tpm | Trusted Platform Module (TPM) Management |
110 | useraccountcontrolsettings | User Account Control Settings |
111 | utilman | Utility Manager |
112 | winver | Version Reporter Applet |
113 | sndvol | Volume Mixer |
114 | slui | Windows Activation Client |
115 | windowsanytimeupgraderesults | Windows Anytime Upgrade Results |
116 | wab* | Windows Contacts |
117 | isoburn | Windows Disc Image Burning Tool |
118 | dvdmaker* | Windows DVD Maker |
119 | migwiz* | Windows Easy Transfer |
120 | explorer | Windows Explorer |
121 | wfs | Windows Fax and Scan |
122 | optionalfeatures | Windows Features |
123 | wf | Windows Firewall with Advanced Security |
124 | winhlp32 | Windows Help and Support |
125 | journal* | Windows Journal |
126 | wmplayer* | Windows Media Player |
127 | mdsched | Windows Memory Diagnostic Scheduler |
128 | mblctr | Windows Mobility Center |
129 | wiaacmgr | Windows Picture Acquisition Wizard |
130 | powershell* | Windows PowerShell |
131 | powershell_ise* | Windows PowerShell ISE |
132 | msra | Windows Remote Assistance |
133 | recdisc | Windows Repair Disc |
134 | wscript | Windows Script Host |
135 | wuapp | Windows Update |
136 | wusa | Windows Update Standalone Installer |
137 | wmimgmt | WMI Management |
138 | wbemtest | WMI Tester |
139 | write | Mở WordPad |
140 | xpsrchvw | Mở XPS Viewer |
141 | desk.cpl | Truy cập vào trang Screen Resolution |
142 | main.cpl | Truy cập vào Mouse properties |
143 | wscui.cpl | Truy cập vào Windows Action Center |
144 | ncpa.cpl | Truy cập vào Network Adapters |
145 | powercfg.cpl | Truy cập vào Power Option |
146 | appwiz.cpl | Truy cập vào Programs and Features Window |
147 | sysdm.cpl | Access the System Properties |
148 | firewall.cpl | Truy cập vào Windows Firewall |
Bài sau mình sẽ cùng các bạn tìm hiểu và cách sử dụng lệnh psexec rất mạnh và hữu ích trong việc remote vào command-line của 1 máy khác trong mạng LAN và thao tác trên máy tính người dùng trong chế độ silent luôn ( người dùng không hề biết) .Psexec giúp việc deploy các file .bat , .vbs … or cần kiểm tra máy tính người dùng mà không cần phải xuống tận nơi ,rất hiệu quả trong việc quick check nhé 😉
Thanks mọi người đã đọc bài ❤ ❤ ❤