Latest Post

 


  • First, locate your PDC Server. 
  • Open the command prompt and type: C:\\>netdom /query fsmo
  • Log in to your PDC Server and open the command prompt.
  • Stop the W32Time service: C:\\>net stop w32time
  • Configure the external time sources, type: C:\\> w32tm /config /syncfromflags:manual /manualpeerlist:time.nist.gov
  • Make your PDC a reliable time source for the clients. Type: C:\\>w32tm /config /reliable:yes
  • Start the w32time service: C:\\>net start w32time
  • The windows time service should begin synchronizing the time. You can check the external NTP servers in the time configuration by typing: C:\\>w32tm /query /configuration
  • Check the Event Viewer for any errors.

 


Các lệnh như sau:

Mở Personalization: explorer shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921}


mở cửa sổ Screen Saver: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,screensaver,@screensaver
mở cửa sổ Change desktop icons: rundll32 shell32.dll,Control_RunDLL desk.cpl,,0

40 lệnh để mở nhanh các công cụ có trên Windows 10

1. Administrative Tools
control /name Microsoft.AdministrativeTools
Hoặc: explorer.exe shell:::{D20EA4E1-3957-11d2-A40B-0C5020524153}

2. AutoPlay
control /name Microsoft.AutoPlay
Hoặc: explorer.exe shell:::{9C60DE1E-E5FC-40f4-A487-460851A8D915}

3. Backup and Restore (Windows 7)
control /name Microsoft.BackupAndRestore
Hoặc: explorer.exe shell:::{B98A2BEA-7D42-4558-8BD1-832F41BAC6FD}

4. BitLocker Drive Encryption
control /name Microsoft.BitLockerDriveEncryption
Hoặc: explorer.exe shell:::{D9EF8727-CAC2-4e60-809E-86F80A666C91}

5. Color Management
control /name Microsoft.ColorManagement
Hoặc: explorer.exe shell:::{B2C761C6-29BC-4f19-9251-E6195265BAF1}

6. Credential Manager
control /name Microsoft.CredentialManager
Hoặc: explorer.exe shell:::{1206F5F1-0569-412C-8FEC-3204630DFB70}

7. Date and Time
control /name Microsoft.DateAndTime
Hoặc: explorer.exe shell:::{E2E7934B-DCE5-43C4-9576-7FE4F75E7480}

8. Default Programs
control /name Microsoft.DefaultPrograms
Hoặc: explorer.exe shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966}

9. Device Manager
control /name Microsoft.DeviceManager
Hoặc: explorer.exe shell:::{74246bfc-4c96-11d0-abef-0020af6b0b7a}

10. Devices and Printers
control /name Microsoft.DevicesAndPrinters
Hoặc: explorer.exe shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}

11. Ease of Access Center
control /name Microsoft.EaseOfAccessCenter
Hoặc: explorer.exe shell:::{D555645E-D4F8-4c29-A827-D93C859C4F2A}

12. Folder Options
control /name Microsoft.FolderOptions
Hoặc: explorer.exe shell:::{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF}

13. File History
control /name Microsoft.FileHistory
Hoặc: explorer.exe shell:::{F6B6E965-E9B2-444B-9286-10C9152EDBC5}

14. Fonts
control /name Microsoft.Fonts
Hoặc: explorer.exe shell:::{BD84B380-8CA2-1069-AB1D-08000948F534}

15. HomeGroup
control /name Microsoft.HomeGroup
Hoặc: explorer.exe shell:::{67CA7650-96E6-4FDD-BB43-A8E774F73A57}

16. Indexing Options
control /name Microsoft.IndexingOptions
Hoặc: explorer.exe shell:::{87D66A43-7B11-4A28-9811-C86EE395ACF7}

17. Infrared
control /name Microsoft.Infrared
Hoặc: explorer.exe shell:::{A0275511-0E86-4ECA-97C2-ECD8F1221D08}

18. Internet Options
control /name Microsoft.InternetOptions
Hoặc: explorer.exe shell:::{A3DD4F92-658A-410F-84FD-6FBBBEF2FFFE}

19. Keyboard
control /name Microsoft.Keyboard
Hoặc: explorer.exe shell:::{725BE8F7-668E-4C7B-8F90-46BDB0936430}

20. Language
control /name Microsoft.Language
Hoặc: explorer.exe shell:::{BF782CC9-5A52-4A17-806C-2A894FFEEAC5}

21. Mouse
control /name Microsoft.Mouse
Hoặc: explorer.exe shell:::{6C8EEC18-8D75-41B2-A177-8831D59D2D50}

22. Network and Sharing Center
control /name Microsoft.NetworkAndSharingCenter
Hoặc: explorer.exe shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}

23. Phone and Modem
control /name Microsoft.PhoneAndModem
Hoặc: explorer.exe shell:::{40419485-C444-4567-851A-2DD7BFA1684D}

24. Power Options
control /name Microsoft.PowerOptions
Hoặc: explorer.exe shell:::{025A5937-A6BE-4686-A844-36FE4BEC8B6D}

25. Programs and Features
control /name Microsoft.ProgramsAndFeatures
Hoặc: explorer.exe shell:::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}

26. Recovery
control /name Microsoft.Recovery
Hoặc: explorer.exe shell:::{9FE63AFD-59CF-4419-9775-ABCC3849F861}

27. Region
control /name Microsoft.RegionAndLanguage
Hoặc: explorer.exe shell:::{62D8ED13-C9D0-4CE8-A914-47DD628FB1B0}

28. RemoteApp and Desktop Connections
control /name Microsoft.RemoteAppAndDesktopConnections
Hoặc: explorer.exe shell:::{241D7C96-F8BF-4F85-B01F-E2B043341A4B}

29. Security and Maintenance
control /name Microsoft.ActionCenter
Hoặc: explorer.exe shell:::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}

30. Sound
control /name Microsoft.Sound
Hoặc: explorer.exe shell:::{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}

31. Speech Recognition
control /name Microsoft.SpeechRecognition
Hoặc: explorer.exe shell:::{58E3C745-D971-4081-9034-86E34B30836A}

32. Storage Spaces
control /name Microsoft.StorageSpaces
Hoặc: explorer.exe shell:::{F942C606-0914-47AB-BE56-1321B8035096}

33. Sync Center
control /name Microsoft.SyncCenter
Hoặc: explorer.exe shell:::

34. System
control /name Microsoft.System
Hoặc: explorer.exe shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}

35. Taskbar and Navigation
control /name Microsoft.Taskbar
Hoặc: explorer.exe shell:::{0DF44EAA-FF21-4412-828E-260A8728E7F1}

36. Troubleshooting
control /name Microsoft.Troubleshooting
Hoặc: explorer.exe shell:::{C58C4893-3BE0-4B45-ABB5-A63E4B8C8651}

37. User Accounts
control /name Microsoft.UserAccounts
Hoặc: explorer.exe shell:::{60632754-c523-4b62-b45c-4172da012619}

38. Windows Firewall
control /name Microsoft.WindowsFirewall
Hoặc: explorer.exe shell:::{4026492F-2F69-46B8-B9BF-5654FC07E423}

39. Windows Mobility Center
control /name Microsoft.MobilityCenter
Hoặc: explorer.exe shell:::{5ea4f148-308c-46d7-98a9-49041b1dd468}

40. Windows To Go
control /name Microsoft.PortableWorkspaceCreator
Hoặc: explorer.exe shell:::{8E0C279D-0BD1-43C3-9EBD-31C3DC5B8A77}


Hướng dẫn sử dụng ForFiles để xóa các tệp cũ hơn N ngày trên Windows 10

Cách 1: Sử dụng ForFiles để xóa các tệp cũ hơn N ngày trên Windows 10:

  • Mở CMD với quyền admin
  • Gõ lệnh: ForFiles / p "C: \ path1\path2\pathN" / s / d -10 / c "cmd / c del @file"

  • / p - cho biết tên đường dẫn để bắt đầu tìm kiếm.
  • / s - hướng dẫn ForFiles tìm kiếm bên trong các thư mục con.
  • / d - chỉ định ngày sửa đổi cuối cùng cho một tệp.
  • / c - hướng dẫn ForFiles thực thi lệnh, cần được gói trong dấu ngoặc kép, mặc định là mật mã cmd / c del @file .

Cách 2: Sử dụng Task Scheduler để tự động xóa các tệp cũ hơn N ngày trên Windows 10
  1. pen Start.
  2. Search for Task Scheduler and click the top result to open the experience.
  3. Right-click the Task Scheduler Library folder.
  4. Click the New Folder option.
  5. Type any name for the folder and click OK. (We’re creating a new folder to keep tasks organized and separated from the system tasks.)
  6. Right-click the recently created folder, and select the Create Task option.
  7. In the “Name” box, enter a name for the task.
  8. In the “General” tab, under the “Security options” section, select the Run whether user is logged on or not option. (This is the option that will make the command window not to appear when the task runs automatically.)
  9. Thẻ lập lịch tác vụ
  10. Task Scheduler General tab
  11. Clear the Do not store password option.
  12. Click the “Triggers” tab, and click the New button.
  13. Using the “Begin the task” drop-down menu, select the On a schedule option.
  14. Under “Settings,” specify when you want the task to run (e.g., On time, Daily, Weekly, Monthly). Whatever option you select, make sure to specify the Start settings on the right side.
  15. Click the OK button.
  16. Cài đặt trình lập lịch tác vụ
  17. Task Scheduler Trigger settings
  18. Click the “Actions” tab, and click the New Button.
  19. Using the “Actions” drop-down menu, select the Start a program option.
  20. In the “Program/script” box, type the following command:
  21. ForFiles
  22. In the “Add arguments” box, type the following command and click the OK button.
  23. /p "C:\path\to\folder" /s /d -30 /c "cmd /c del @file"
  24. In the above command remember to change "C:\path\to\folder" specifying the path to the folder that you want to delete files, and change /d -30 to select files with a last modified date.
  25. Lập lịch tác vụ Cài đặt hành động
  26. Task Scheduler Action settings
  27. Click the “Settings” tab, and make sure to check the following options:
  28. Allow task to be run on demand.
  29. Run task as soon as possible after a scheduled start missed.
  30. If the task fails, restart every.
  31. Click the OK button.
  32. Task Scheduler additional settings
  33. If prompted, enter your administrative username and password.
  34. Click the OK button.

Windows 10 default environment variables

windows 10 variables


VARIABLE WINDOWS 10
%ALLUSERSPROFILE% C:\ProgramData
%APPDATA% C:\Users\{username}\AppData\Roaming
%COMMONPROGRAMFILES% C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files
%CommonProgramW6432% C:\Program Files\Common Files
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:\
%HOMEPATH% C:\Users\{username}
%LOCALAPPDATA% C:\Users\{username}\AppData\Local
%LOGONSERVER% \\{domain_logon_server}
%PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
%PathExt% .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMDATA% C:\ProgramData
%PROGRAMFILES% C:\Program Files
%ProgramW6432% C:\Program Files
%PROGRAMFILES(X86)% C:\Program Files (x86)
%PROMPT% $P$G
%SystemDrive% C:
%SystemRoot% C:\Windows
%TEMP% C:\Users\{username}\AppData\Local\Temp
%TMP% C:\Users\{username}\AppData\Local\Temp
%USERDOMAIN% Userdomain associated with current user.
%USERDOMAIN_ROAMINGPROFILE% Userdomain associated with roaming profile.
%USERNAME% {username}
%USERPROFILE% C:\Users\{username}
%WINDIR% C:\Windows
%PUBLIC% C:\Users\Public
%PSModulePath% %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%OneDrive% C:\Users\{username}\OneDrive
%DriverData% C:\Windows\System32\Drivers\DriverData
%CD% Outputs current directory path. (Command Prompt.)
%CMDCMDLINE% Outputs command line used to launch current Command Prompt session. (Command Prompt.)
%CMDEXTVERSION% Outputs the number of current command processor extensions. (Command Prompt.)
%COMPUTERNAME% Outputs the system name.
%DATE% Outputs current date. (Command Prompt.)
%TIME% Outputs time. (Command Prompt.)
%ERRORLEVEL% Outputs the number of defining exit status of previous command. (Command Prompt.)
%PROCESSOR_IDENTIFIER% Outputs processor identifier.
%PROCESSOR_LEVEL% Outputs processor level.
%PROCESSOR_REVISION% Outputs processor revision.
%NUMBER_OF_PROCESSORS% Outputs the number of physical and virtual cores.
%RANDOM% Outputs random number from 0 through 32767.
%OS% Windows_NT
Although you can use environment variables to quickly access certain locations within Windows 10, you’ll typically use these variable when building an script or an application.

Keep in mind that some of the variables mentioned are not location specific, including %COMPUTERNAME%, %PATHEXT%, %PROMPT%, %USERDOMAIN%, %USERNAME%.

Hướng dẫn Reset khi quên password Windows 10 v1903 

reset password windows 10

Tạo một ổ Bootable Media có chứa cài đặt Windows 10. Ngoài ra bạn phải sử dụng đĩa cài đặt Windows thích hợp 32-bit hoặc 64-bit, điều này phụ thuộc vào phiên bản Windows bạn đã cài đặt. Sau đó thực hiện các bước sau:

1. Khởi động từ ổ USB cài đặt Windows.

2. Chờ cho đến khi màn hình Windows Setup xuất hiện:

3. Nhấn tổ hợp phím Shift + F10 để mở cửa sổ Command Prompt.

4. Trên cửa sổ Command Prompt bạn nhập regedit vào đó rồi nhấn Enter để mở Registry Editor.


5. Trên cửa sổ Registry Editor bạn tìm key HKEY_LOCAL_MACHINE ở danh sách khung bên trái.

Sau khi đã chọn xong key, trên Menu lệnh bạn chọn File => Load Hive...

chọn File => Load Hive...

6. Tiếp theo trên hộp thoại Load Hive bạn chọn file:

DRIVE:\Windows\System32\config\SYSTEM

Lưu ý:

Thay thế DRIVE bằng tên ổ bạn cài đặt Windows, thường là ổ C.

7. Nhập bất kỳ một tên nào mà bạn muốn cho Hive mà bạn đang load. Chẳng hạn như 123.

8. Điều hướng theo key:

HKEY_LOCAL_MACHINE\123\Setup

Đường dẫn

Chỉnh sửa thông số cmdline và thiết lập là cmd.exe. 

Thay đổi giá trị thông số SetupType DWORD thành 2.

9. Tiếp theo trên cửa sổ Registry, chọn key 123 ở danh sách khung bên trái rồi chọn File => Unload hive.

Đóng Registry Editor và tất cả các cửa sổ đang mở lại

Lúc này máy tính Windows 10 của bạn sẽ được khởi động lại.

10. Rút ổ USB và khởi động máy tính trực tiếp từ ổ cứng. Lúc này màn hình sẽ giống như hình dưới đây:

 Rút ổ USB và khởi động máy tính trực tiếp từ ổ cứng

11. Nhập câu lệnh dưới đây vào cửa sổ Command Propmt:

net user

Trên màn hình sẽ hiển thị tất cả các tài khoản đang tồn tại trên máy tính của bạn.

12. Để thiết lập mật khẩu mới cho tài khoản Windows của bạn, nhập câu lệnh dưới đây vào cửa sổ Command Propmt:

net user "your username" "new password"

13. Nhập tiếp regedit để mở Registry Editor.

14. Trên cửa sổ Registry bạn điều hướng theo key:

HKEY_LOCAL_MACHINE\System\Setup

Chỉnh sửa thông số cmdline và thiết lập giá trị trống.

Thay đổi giá trị thông số SetupType DWORD là 0.


15. Đóng cửa sổ Registry Editor và cửa sổ Command Prompt lại để tiếp tục.

Đóng cửa sổ Registry Editor và cửa sổ Command Prompt lại


Lúc này Windows 10 sẽ khởi động lại. Sau khi quá trình khởi động kết thúc, bạn có thể sử dụng mật khẩu mà bạn vừa thiết lập để đăng nhập máy tính Windows 10.

CCNA

CẤU HÌNH CƠ BẢN

1. Router>: User exec mode

Các lệnh cơ bản:
o Show version
o Show privilege
o Show flash

2. Router#: Privileged exec mode

o Enable/disable
o Show running-config (Gõ show run ->Tab tự hiện hết câu lệnh): xem các lệnh cấu hình
o Nhấn phím bất kỳ kết thúc dòng More… của lệnh
o Show startup-config: lệnh xem startup config
o Write/copy run startup-config (Xài 1 trong 2 lệnh để chép file startup config vào router)
o Write erase/erase start
o Reload: chạy lại
o Phím tăt: Ctrl +a đầu dòng
o Ctrl + E : cuối dòng
o Ctrl + D: delete ký tự bên phải
o Ctrl Shift 6 : dừng dòng lệnh lỗi
o Ctrl Z: về mode 2

3. Router(Config)#: Global configuration Exec Mode

o Config terminal: vào mode
o Exit: thoát mode, hoặc Ctrl Z
o Hostname Router1 : lệnh đặt tên Router là Router1
o Banner motd # Gõ lời chào # <-|
o Banner motd # <-|
********************
****ABCDBJJBJH******
********************
<-| #
o Enable password 123456 : đặt password cho mode 2 không mã hóa
o Gõ No enable password: xóa pass
o Enable secret 123456 : đặt pass mã hóa
o No ip domain-lookup: xóa phân giải tên khi Router ko hiểu, khỏi nhấn phím tắt Ctrl Shift 6
o No logging console: xóa thông báo gởi đến console port

4. Sub-mode

4.1 Console:

o Line console 0 1 (Chỉnh cổng 0 và 1, nếu chỉ có 1 cổng chỉ gõ 0)
o Exit: thoát ra và vào chế độ config t Mode 3
o End: thoát ra và vào chế độ Priviledge Mode 2
o Password 123456 enter và login rồi enter là một bộ lệnh đặt pass và yêu cầu login từ mode 1 khi muốn vào cổng console của Router
o Exec-timeout 0 20: thoát sau o phút 20 giây
o Exec-timeout 0   0: không tự logout
o Logging synchronous: chống trôi dòng lệnh đang gõ khi bị hiện thông báo

4.2 AUX: Toàn bộ lệnh giống console

4.3 Interface:

o Fixed: Các cổng cố định có các Type: Ethernet, Fast Ethernet, Gigabit Ethernet,…
  • Type port

o Module: Các cổng option gắn thêm
  • Type slot/port
  • Type slot/subslot/port


o Show ip interface brief : lệnh xem ip của interface sử dụng ở Mode 2
o Interface fastethernet 0/0: vào chế độ set cổng fastethernet 0/0
o No shutdown: lệnh mở cổng cho nó Up lên
o Ip add 192.168.15.101 255.255.255.0 : gán ip cho card inter hiện hành
o Sử dụng cho vLan của Swich or Router: (Để có thể Ping được)
o Interface vlan1: vào config vlan1
o No shutdown
o Ip add 192.168.15.102 255.255.255.0 : đặt ip cho vLan

4.4 VTY : Đặt password login và cho phép user kết nối đến router qua telnet

Line vty 0 1 đến 15 (Cho phép 1 đến15 user kết nối cùng thời điểm)
Password 456
login
Lệnh cho Telnet vào cổng HWIC-8A

Conf t
Line 0/0/0 0/0/7 : Cấu hình line 0/0/0 đến 0/0/7 1 lúc 8 line của HWIC-8A
No pass : không đặt pass
No login: không cần login
Transport input telnet: chuyển telnet đến HWIC-8A
Show line : xem các line ở Mode 2
Port của các Router = 2000 + số line
0/0/0 line 2 => port = 2002
0/0/7 line 9 => port =2009

Ngắt kết nối Telnet : Sau mỗi phiên kết nối phải clear rồi mới telnet lại được
  • Telnet 192.168.15.253
  • Enable
  • Clear line tty 2->9 : clear các line từ 2 đến 9, mỗi line 1 dòng


BẢO TRÌ MÁY TÍNH

CHUYÊN NGHIỆP VÀ UY TÍN {facebook#http://facebook.com/hethongmang.vn}

Contact Form

Name

Email *

Message *

Powered by Blogger.