I'm handling the IT stuff for my family and we're upgrading from Windows 10 to Windows 11 Pro. I've written a bunch of PowerShell scripts to configure user accounts, network settings, and install preferred applications like IrfanView and Notepad++. However, I'm stuck trying to set default apps for users without needing admin rights. I know I can use DISM, but it's not helpful for current users or for those without admin access. I'd like each user to run a script to set their own default apps, but as it stands now, Windows 11 Pro requires each user to manually configure their file associations. I'm aiming to automate this process, allowing easy setup for multiple laptops and PCs. Ideally, I want to generate a configuration file that allows users to just tweak it for their specific applications. I've tried exporting and importing registry keys but that didn't work. What am I missing? How can I achieve this with PowerShell?
4 Answers
Yeah, it’s a hassle to try and change these settings. I’ve heard of a tool from Christoph Kolbicz that might help, but it does come with a cost. You can check it out at setuserfta.com. Just be prepared for the price tag and see if it's worth it for your needs!
Check out the PS-SFTA project on GitHub. There’s potential there, but keep in mind it may not be straightforward as the registry keys and XML associations have changed. Microsoft has hidden a lot of that in a way that makes scripting almost impractical for a single user modification.
From what I understand, Microsoft has made it really tough to change default app settings programmatically. The default associations can usually only be altered via the GUI, hence why your scripts aren’t functioning as intended. You might have some luck with AutoHotKey if you want to get creative, but overall, it looks pretty restricted. Good luck finding a workaround!
I recently went down this rabbit hole and it's not easy, unfortunately. The registry keys needed for these associations are obscured, making it a challenge without group policies. There are even some tools available that require a purchase, so that might be another option if you're looking for a reliable solution.
Thanks for the tip! I did look into some third-party tools but they're quite pricey. I'll keep searching for something more affordable!
Yeah, it used to be a headache in the past with apps hijacking file extensions all the time. It seems like Microsoft is really pushing users toward their apps now, especially things like the built-in media player and photo viewer, which is frustrating. I’m rooting for you to find a solution!