File association problem Windows 10

I've associated .dok files to the program DesktopOK by GPO in order to load a desktop layout upon startup, so that new users can find an workable desktop layout instead of a pack of icons on the left.

But it doesn't work. Although the file association script does its job (correct values with correct progID "desktopokdoc" are set in both Ordinateur\HKEY_CLASSES_ROOT\.dok and Ordinateur\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.dok\UserChoice

Even exporting default file association from dism /online /Export-DefaultAppAssociations:"C:\DefaultAppAssociations.xml" confirms it, as the xml shows:

Yet trying to open any .dok file result in windows prompting its "Windows cannot open .dok files", needing user to scroll and select the program to open it with manually.

Indeed, when checking in Settings->Apps->Default Apps->Choose default apps by file type of users it appears tha .dok extention is NOT associated with any program...

What happens here? How come Windows doesn't respect it's own registry code? Why is it so complicated to do something as basic as setting file associations for all users?

What should be done to make it work?

Hi, I am Dave, I will help you with this.

I apologize, Community is just a consumer forum, due to the scope of your question can you please post this question to our sister forum on Microsoft Q&A (The System Administrators and IT Pro Forum)

Over there you will have access to a host of System Administrators and IT Pro experts and will get a knowledgeable and quick answer to this question.

https://docs.microsoft.com/en-us/answers/index....
___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks for replying Dave,

I've posted this again there as asked, hope someone can help fixing the situation:

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Glad to help!
___________________________________________________________________

Power to the Developer!

MSI GV72 - 17.3", i7-8750H (Hex Core), 32GB DDR4, 4GB GeForce GTX 1050 Ti, 256GB NVMe M2, 2TB HDD

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 19, 2025 Views 93 Applies to: