question

HurlbutHealthConsulting-6879 avatar image
0 Votes"
HurlbutHealthConsulting-6879 asked FanFan-MSFT commented

Unable to apply file association change via GPO

The goal is to have XML files open in MS Excel. The clients are running Windows 10 ver 2004. Excel is 2019

I have created a file called AppDefaults.xml by editing the file created by the dism tool.
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".xml" ProgId="Applications\EXCEL.EXE" ApplicationName="Excel" />
</DefaultAssociations>

At first the policy was referencing this file from a network share but I have moved it local to the computer while troubleshooting issues.

I created a policy object with just one setting.
Location: Computer Configuration -> Administrative Templates -> Windows Components ->File Explorer
Setting: "Set a default associations configuration file"
Value: Enabled Default Associations Configuration File: "C:\Drivers\AppDefaults.xml"

While troubleshooting I gave everyone full access to this folder and file. The GPO is applied to an OU and the test computer is in the correct OU.

On the test PC I do see a registry entry was created at: \HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\
Name: DefaultAssociationsConfiguration
Value: C:\Drivers\AppDefaults.xml

Multiple reboots and gpudate /force commands latter and XML file associations have not changed. I tested with admin and non-admin accounts. I also tested with users who had pre-existing profiles as well as users brand new to the PC. As the above referenced registry entry is being written it appears that the policy is being applied but the default app for XML remains the same. Maybe there is an issue in the AppDefaults.xml file? Any thoughts? Thanks!

windows-group-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FanFan-MSFT avatar image
0 Votes"
FanFan-MSFT answered

Hi,

You can check the GPO applied in the output of the command :Gpresult /h c:\report.html
You can check more details from the gpsvc log.(Not suggest to post here due to security reason)
https://blogs.technet.microsoft.com/askds/2015/04/17/a-treatise-on-group-policy-troubleshootingnow-with-gpsvc-log-analysis/

If everything works well for the GPO, then you can confirm the xml file again.

Best Regards,

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HurlbutHealthConsulting-6879 avatar image
0 Votes"
HurlbutHealthConsulting-6879 answered FanFan-MSFT commented

Thanks for the reply. We did verify the policy is being applied using the gpresult command. I created a new AppDefaults.xml file via the dism command and put the complete unedited file in the appropriate directory. Still no luck - the XML file association has not changed.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry for can't provided more advice for the the XML file creation.
If you want , may be you can ask more advice from : https://support.microsoft.com/en-in/hub/4343728/support-for-business
Best Regards,

0 Votes 0 ·