How to change app protocol associations in Windows 11
App protocol associations in Windows 11 control which program opens specific web links like mailto: or http: requests. Windows 11 uses security signatures called cryptographic hashes to protect these links, which stops simple registry edits or file replacements from working.
You need to use built-in deployment tools instead of manual file changes if you want to update these protocol links across your PC.
To manage app protocol associations in Windows 11, open Command Prompt as an administrator and run the command dism /online /Export-DefaultAppAssociations:📁C:\
Generate a Default App Associations XML File
You can generate a default app associations XML file in Windows 11 by using the Deployment Image Servicing and Management tool from an elevated command prompt. This export command captures your current file type and protocol mappings so you can save and modify them for deployment across multiple computers.
- Open the Start menu , type
cmd, right-click Command Prompt in the search results, and select Run as administrator. - Type the export command using the DISM (Deployment Image Servicing and Management) tool to capture your current settings. Run the following command, replacing the path with your desired save location:
dism /online /Export-DefaultAppAssociations:C:\temp\DefaultAssociations.xml - Press Enter and wait for the operation to complete successfully.
- Navigate to
C:\temp\DefaultAssociations.xmlusing File Explorer to verify that the XML file was created.
Modify the Default App Associations XML
You can modify the default app associations XML file using Notepad to change preferred handlers for specific file extensions and protocols before you import the settings to other computers. Editing this file lets you control which programs open specific links and files across your entire system.
- Right-click your exported XML file and select Open with, then choose Notepad.
- Locate the specific protocol or file extension entry you want to change within the XML structure. Each entry uses identifier tags specifying the extension or protocol name alongside the corresponding AppUserModelID of the target application.
- Modify the application identifier string to point to your desired handler. Ensure you retain the exact syntax of the surrounding XML tags to prevent parsing errors during import.
- Click File and select Save to store your changes.
Import Default App Association Settings
You can import default app association settings on a running Windows 11 installation by running a specific command prompt tool that points to your customized XML file. This action instantly updates your system-wide protocol and file type mappings to match your preferred application choices.
- Open the Start menu , type
cmd, right-click Command Prompt, and choose Run as administrator. - Run the import command via the DISM utility, pointing it to your modified XML file location:
dism /online /Import-DefaultAppAssociations:C:\temp\DefaultAssociations.xml - Press Enter to apply the associations.
- Restart your computer to ensure all running processes and shell components recognize the updated protocol mappings.
Add or Remove Default Application Association Settings to a Windows Image
You can add or remove default application association settings to a Windows image by mounting an offline Windows image file and using the Deployment Image Servicing and Management utility to inject your custom XML file. This process configures default app choices for custom operating system deployments.
- Open Command Prompt as an administrator and mount your Windows image to a temporary directory using DISM:
dism /mount-image /imagefile:C:\images\install.wim /index:1 /mountdir:C:\test\offline - Import the association file into the mounted image:
dism /image:C:\test\offline /Import-DefaultAppAssociations:C:\temp\DefaultAssociations.xml - Review the applied settings or unmount the image once configuration finishes.
Importing settings directly into an offline image ensures that every device deployed from that image immediately respects your protocol and file extension preferences without requiring post-installation scripting.
Review the default app association setting in an image
You can review the default app association setting in an image by running a query command in Command Prompt that points to your mounted Windows directory. This check lets you verify that your file type and protocol mappings are correct before you finalize your deployment package.
- Open Command Prompt as an administrator.
- Run the query command pointing to your mounted directory:
dism /image:C:\test\offline /Get-DefaultAppAssociations - Review the output list in the command window to verify that your protocols point to the intended applications.
Remove default app association settings
You can remove default app association settings from a mounted Windows image by running a targeted removal command in Command Prompt. This action completely clears any previously injected association lists so you can start fresh before finalizing your custom operating system build.
- Open Command Prompt as an administrator.
- Run the removal command targeting your mounted directory:
dism /image:C:\test\offline /Remove-DefaultAppAssociations - Press Enter to strip the custom association file from the image.
Unmount the Windows image
You can unmount the Windows image and save your changes by running the unmount command with the commit switch in Command Prompt. This action safely closes the temporary directory and writes all your app association modifications directly into the offline image file.
- Open Command Prompt as an administrator.
- Run the unmount command with the commit switch:
dism /unmount-image /mountdir:C:\test\offline /commit - Wait for the progress bar to reach 100 percent and verify that the mount directory is empty.
What to do next
Test individual URL schemes or configure group policies to lock down user modifications across your environment.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!