Windows 10 hay reset file associations về mặc định Microsoft sau khi upgrade build. Để bảo toàn tùy chỉnh (ví dụ .txt mở bằng Notepad), có thể Export ra file XML rồi Import lại khi cần.
Quản lý Default App Associations
Tạo điểm khôi phục trước.
Phương pháp 1: Export associations hiện tại
- Win + X → Command Prompt (Admin).
- Chạy:
dism /online /Export-DefaultAppAssociations:"%UserProfile%\Desktop\DefaultAppAssociations.xml" - File XML xuất hiện trên Desktop → backup lại nơi an toàn.
Phương pháp 2: Import cho user hiện tại hoặc user mới
- Đăng nhập user cần import.
- Copy file
DefaultAppAssociations.xmllên Desktop user đó. - CMD Admin →
dism /online /Import-DefaultAppAssociations:"%UserProfile%\Desktop\DefaultAppAssociations.xml" - Xong → Khởi động lại.
Phương pháp 3: Xóa hoàn toàn custom associations
- CMD Admin →
Dism.exe /Online /Remove-DefaultAppAssociations - Khởi động lại → về mặc định Microsoft.
Rất hữu ích khi cài đặt hàng loạt máy hoặc sau upgrade Windows!