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?