Changing Default File Associations in Windows 10
Changing Default File Associations in Windows 10
Reference : http://woshub.com/managing-default-file-associations-in-windows-10/Edit the register with following key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fileExtName
How to Reset File Associations in Windows 10
Using the following command, you can reset the settings of file associations imported earlier:
Dism.exe /Online /Remove-DefaultAppAssociations
After running this command, all new users will be logged with the default file association (the reset has no effect on the existing user profiles).
In order to reset the file associations manually configured by the user to the default ones, you need to click on the Reset button in the Settings -> Apps -> Default Applications.
In this case, all file associations will return to the state of clean Windows 10 installation.
Importing Default App Associations on Windows 10
The resulting XML file can be imported into a Windows 10 on other computers using DISM tool:
Dism.exe /Online /Import-DefaultAppAssociations:C:\PS\DefaultAssoc.xml\
Important. These settings to map file extensions to apps will be applied only to new user profiles during the first logon.
You can also import these settings to the offline Windows image in the WIM file. First, you have to mount the image:
Dism /Mount-Image /ImageFile:C:\mnt\images\install.wim /MountDir:C:\mnt\offline
And then import the XML file:
Dism.exe /Image:C:\mnt\offline /Import-DefaultAppAssociations:\\Server1\Share\DefaultAssoc.xml
Tip. The current settings of file associations in the offline Windows image can be obtained using this command:
Dism.exe /Image:C:\mnt\offline /Get-DefaultAppAssociations
留言
張貼留言