积极答复者
Import-DefaultAppAssociations不生效

问题
答案
-
Hi ,
我测试了一下发现有同样的问题,导出默认应用之后,修改默认浏览器设置(IE)为edge,通过dism命令重新导入默认应用,浏览器设置没有改变:
经过查询之后,发现这应该是个已知问题,此问题此前已有所讨论:
DISM import DefaultAppAssociations doesnt work anymore since build 1511
这是由于如果使用DISM / Import-DefaultAppAssociations导入此文件,则生成的OEMDefaultAssociations.xml文件将不再具有“ ApplyOnUpgrade=ture”的属性。如果没有创建此属性并将其设置为true,则不会为现有用户创建文件关联。这将触发“重置了应用程序默认设置”消息。
目前的解决方法是:在导入的.xml文件中手动将“ ApplyOnUpgrade=ture”以及OverwriteIfProgIdIs属性添加到导出的.xml文件中。详细的修改步骤您可以参考以上的帖子。
希望对您有所帮助。
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- 已建议为答案 Candy LuoMicrosoft contingent staff 2020年7月6日 2:43
- 已标记为答案 郭世昂 2020年7月8日 2:22
-
"OverwriteIfProgIdIs“="OrigProgID"在您原来导出的Default-App.xml里可以看到的,如下图所示,这是edge浏览器对应的OrigProgID:
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- 已编辑 Candy LuoMicrosoft contingent staff 2020年7月2日 9:19
- 已标记为答案 郭世昂 2020年7月8日 2:20
全部回复
-
Hi ,
我测试了一下发现有同样的问题,导出默认应用之后,修改默认浏览器设置(IE)为edge,通过dism命令重新导入默认应用,浏览器设置没有改变:
经过查询之后,发现这应该是个已知问题,此问题此前已有所讨论:
DISM import DefaultAppAssociations doesnt work anymore since build 1511
这是由于如果使用DISM / Import-DefaultAppAssociations导入此文件,则生成的OEMDefaultAssociations.xml文件将不再具有“ ApplyOnUpgrade=ture”的属性。如果没有创建此属性并将其设置为true,则不会为现有用户创建文件关联。这将触发“重置了应用程序默认设置”消息。
目前的解决方法是:在导入的.xml文件中手动将“ ApplyOnUpgrade=ture”以及OverwriteIfProgIdIs属性添加到导出的.xml文件中。详细的修改步骤您可以参考以上的帖子。
希望对您有所帮助。
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- 已建议为答案 Candy LuoMicrosoft contingent staff 2020年7月6日 2:43
- 已标记为答案 郭世昂 2020年7月8日 2:22
-
"OverwriteIfProgIdIs“="OrigProgID"在您原来导出的Default-App.xml里可以看到的,如下图所示,这是edge浏览器对应的OrigProgID:
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- 已编辑 Candy LuoMicrosoft contingent staff 2020年7月2日 9:19
- 已标记为答案 郭世昂 2020年7月8日 2:20
-
Hello,
目前问题进展如何?
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com -
Hi ,
请问目前还有什么其他的疑问吗?如果有任何疑问,请随时在贴下更新。
如果回复对您有所帮助的话,请您把回复标记为答复,我将暂停对此贴的追踪。
感谢您的理解和支持。
此致
Candy
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com