ever since i have created SetUserFTA, i missed a command to display the filetypes (extension and ProgId) that are associated for the current user. using assoc.exe we can only query the local machine, but we don’t have any command to list the “protected” associations under the HKCU (or maybe i just dont know about it). we can export some of those with dism, but the list seems not to be complete – it will only export the ones, that were changed manually with the settings app.
this is where GetUserFTA jumps in.
UPDATE 23.08.2018 – GetUserFTA is now obsolete. you can achieve the same using “SetUserFTA.exe get”
this little utility will crawl the current user’s registry and list every file extension that has a UserChoice Hash associated. It will ONLY list those with a Hash.
and here is a bonus: you can create a config file for SetUserFTA with it!
pretty simple. just run it without any parameter and it will display all – with a hash protected – filetypes. if you wonder what these long ProgId’s are – those are universal apps. you can find a list of them in: C:\Windows\System32\OEMDefaultAssociations.xml – i didn’t find an easy way to display these applications. if you know one, please let me know.
this will create a config file that you can use with SetUserFTA! now you can configure an example user on a machine (set all the associations how they should be), export all the associations and import them with SetUserFTA – for any user you want!
of course you can filter the output with the find command:
GetUserFTA.exe | find “pdf”
this will list the ProgId for the .pdf extension associated for the current user. you can redirect the output to a file – just like showed in the example above.
no more magic – thats all that this utility does. simple, but effective!
you can download GetUserFTA here. SHA256 hashes below.
Version 1.1 – adds support for protocols (mailto, http, https, etc).
Version 1.2 – eliminates Visual C runtimes dependency
Version 1.3 – reduced size, additional error handling, unicode support, EULA added