Windows 10: Export and Import Default App Associations for New Users in Windows  

Page 5 of 5 FirstFirst ... 345
  1.    23 Aug 2017 #40

    questorfla said: View Post

    Help!
    I was able to solve most of the problems using a VBS script
    The original wasn't my work. It was made for Chrome but I modified it to add Acrobat
    The last problem is Outlook. Due to naming conventions outlook%202016 will not work
    but it has to represent "outlook 2016" in the script in order to work properly
    Any ideas on how to fix this? I am sure it is easy and i will find it eventually but....
    here is the part that works. I would think that this can be added to for as many programs as needed is done properly
    enter copied code for each program after the line
    WshShell.SendKeys " "
    I am sure you can see where it repeats for adobe.
    By the way, Adobe MUST come after Chrome in order for things to work right.
    Many Thanks to the original posted on Super User :
    https://superuser.com/questions/1069...ser-windows-10

    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?
    pszAppName=google%20chrome"
    WScript.Sleep 1200
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?
    pszAppName=adobe%20acrobat%20reader%20dc"
    WScript.Sleep 1200
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WScript.Quit

    I just went down this exact path
    The appRegName is specified in HKEY_LOCAL_MACHINE (orHKEY_CURRENT_USER)\SOFTWARE\RegisteredApplications

    Outlook 2016 is registered as outlook.application.2016 (I initially thought the %202016 was causing issues.. but percent-encoding only accepts 2 characters as input.. so the app name had to be incorrect.)

    The command you want to add for outlook 2016 will be WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=outlook.application.16"
      My ComputerSystem Spec


  2. Posts : 2
    Windows 10 LTSB
       04 Dec 2017 #41

    jgt1942 said: View Post
    How do you restore the defaults for an existing user?
    ^
    Restoring defaults is very useful, because the XML file(s) list all sorts of different settings, such as:
    Code:
      <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" />
      <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" />
    Code:
      <Association Identifier="http" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
       <Association Identifier="https" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
    &
    For a novice, it can be difficult to understand why ProgId is labeled different, in all sorts of ways, heh. :-/

    P.S. Btw., Windows Environment Variables (for some, strange, reason!) are an elusive bunch. After much searching, I was finally able to come up with a couple of URLs @
    Code:
    https://en.wikipedia.org/wiki/Environment_variable
    Code:
    https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables
      My ComputerSystem Spec


  3. Posts : 2
    Windows 10 Pro 10.0.16299 Build 16299
       26 Feb 2018 #42

    doesn't work on win 10

    Code:
    Error:  DISM   DISM Assoc Provider: PID=8456 TID=236 Failed to export the user associations from the registry. - CAssocManager::ExportAppAssoc(hr:0x80004002)
    Error:  DISM   DISM Assoc Provider: PID=8456 TID=236 Failed to export the user associations. - CAssocManager::ProcessCmdLine_ExportAppAssoc(hr:0x80004002)
     Error:  DISM   DISM Assoc Provider: PID=8456 TID=236 Failed while processing command export-defaultappassociations. - CAssocManager::ExecuteCmdLine(hr:0x80004002)
    
      My ComputerSystem Spec


  4. Posts : 30,116
    64-bit Windows 10 Pro build 17692
    Thread Starter
       26 Feb 2018 #43

    Hello verwijs, :)

    The method in the tutorial still works for me in Windows 10 build 17604.

    Please keep in mind, that this only gets applied to "new" user accounts when created afterwards.
      My ComputersSystem Spec


 
Page 5 of 5 FirstFirst ... 345

Tutorial Categories

Export and Import Default App Associations for New Users in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
How to Restore Default Apps for File Type Associations in Windows 10 A default app is the program that Windows uses automatically when you open a particular file type or protocol. Default app associations for file extensions are a per user...
In Windows 8, I would plug my phone in and it would display all the pictures on the phone and highlight the new ones. I would then click IMPORT. Boom. Done. With Windows 10 it doesnt seem as straight forward. I plug my phone in and sometimes...
Can't find an option to import bookmarks in Spartan. Please let me know if I am missing it. Thanks.
No way to import bookmarks? in Browsers and Email
In the Edge browser is there no way to import bookmarks? They've shown up in Spartan but not this time with 10122. Jim
How to Import and Export Bookmarks via HTML in Firefox This tutorial will show you how to easily export and import your bookmarks in the Mozilla Firefox web browser using HTML files. As well as acting as a backup of your bookmarks this is also...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 14:48.
Find Us