Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

SetUserFTA.exe get scanner?

maybe theres an easier way to get this but trying to see if i can use Inventory to pull in some data for a users default file associations (specifically for a couple of them but overall could be helpful in the future i'm sure.   I know i can use the PS command:  setuserfta.exe get  but i'm sure i'd have to run it as the logged in user (not sure yet if thats possible) and my initial tests the PS scanner didnt seem to break out the data the way i was hoping (file extension, default app columns....).  curious if anyone has any experience with this or advice?

1

Comments

2 comments
Date Votes
  • i'm sure i'd have to run it as the logged in user (not sure yet if thats possible)

    It's available in the Scan As dropdown on Scan Profiles: https://link.pdq.com/docs-PDQInventory?scan-profile-window.htm#details

    the PS scanner didnt seem to break out the data the way i was hoping (file extension, default app columns....).

    That's because EXEs just return an array of strings. It looks like it outputs the strings in CSV format, so you should be able to turn it into a properly formatted object with ConvertFrom-Csv. I haven't tested this, but I think it should work:

    SetUserFTA.exe get | ConvertFrom-Csv -Header 'Extension', 'Program ID'

    If that doesn't work, you can try querying the following registry keys with either a Registry or PowerShell scanner:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\*\UserChoice
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\*\UserChoice

    Sources:

    https://stackoverflow.com/a/51727990

    https://social.technet.microsoft.com/Forums/en-US/43780476-8d03-4c02-b457-c94c8c317ab7/updating-default-apps-protocol-via-powershell

    0
  • ahh thats right i know you've told me that already  i keep forgetting about the .exe's!  that did work great thank you! i forgot that setuserfta.exe isnt a built in utility but one you have to load first so i'll have to get that deployed first looks like

    0