Skip to content

Instantly share code, notes, and snippets.

@riteshkawadkar
Last active April 13, 2021 20:03
Show Gist options
  • Save riteshkawadkar/28172d98bbfcf526056aeacdab731ffc to your computer and use it in GitHub Desktop.
Save riteshkawadkar/28172d98bbfcf526056aeacdab731ffc to your computer and use it in GitHub Desktop.
# dism /online /Export-DefaultAppAssociations:"path\to\defaultassociations.xml"
# Use Export on system whose default app associations you wish to copy
# Use Import on User profile where you want your app to be associated
dism /online /Import-DefaultAppAssociations:"path\to\defaultassociations.xml"
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".pdf" ProgId="AcroExch.Document.DC" ApplicationName="Adobe Acrobat Reader DC" />
<Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook" />
</DefaultAssociations>
@riteshkawadkar
Copy link
Author

I have compiled a basic file for you, to set the default associations of Outlook and Adobe Reader - defaultassociations.xml

You can always use Export command for exporting new file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment