Latest Post

 Tạo menu chuột phải giống Windows 10 cho Windows 11



B1: Bạn ra ngoài Desktop của Windows 11, di chuột ra chỗ trống bấm chuột phải chọn Open in Windows Terminal.

B2: Gõ hoặc dán dòng lệnh sau để tạo mên chuột phải giống Windows 10

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

Chạy lệnh đó xong, bạn thấy thông báo ghi “The operation completed successfully” là đã thành công! Giờ bạn khởi động lại máy tính và xem thành quả, nếu không thì sign out và và sign in lại cũng được.

B3: Để khôi phục lại menu chuột phải của Windows 11 như cũ bạn gõ lệnh Terminal như sau:

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve


Hoặc sử dụng app:  Winaero Tweaker

 

 Logon Windows 11 không cần tài khoản Microsoft



B1: Tại màn hình “Connect to the Internet” trong OOBE, bạn nhấn Shift + F10 để mở cửa sổ lệnh Command Prompt.

B2: Nhập lệnh OOBE\BYPASSNRO sau đó nhấn Enter.

B3: Hệ thống sẽ tự khởi động lại và bạn sẽ thấy tùy chọn “I don’t have Internet”.

B4: Nhấn vào tùy chọn “I don’t have Internet” sau đó tiếp tục nhấn “Continue with limited setup” để hoàn thành việc cài đặt. Trong quá trình cài đặt tiếp theo, bạn sẽ được sử dụng tài khoản cục bộ thay vì tài khoản Microsoft.



 


  • 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%.

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.