How to use PowerShell to switch default app (from pre-determined list) for a given file type? Windows 10

11.3k views Asked by At

I frequently switch App to open PDFs and wish for shortcut. Without Admin Right, can PowerShell Script change default App from pre-determined list:

  1. Open PowerShell Window
  2. Show current Default
  3. Press Enter if OK
  4. Press Spacebar (non-graphical interface) to show next App in List
  5. Press Enter to change Default
  6. Above Script to show in Windows 10 Taskbar

As-Is, because Word is my only Enterprise Translation tool for PDF, it is very cumbersome for Word (when not default App) to open PDF. 9 steps when Word is not default App

Solutions that need Admin right

  1. Set default app for .PDF file extension to Adobe or Edge?
  2. How to Export and Import Custom Default App Associations for New Users in Windows 10
  3. Add to default when File Extension is not listed
1

There are 1 answers

1
Eugene Astafiev On

File associations are kept in the windows registry, see Changing Default File Associations in Windows 10 and 11 for more information. You can use group policy objects for deploying file associations or just customize the windows registry records on your own.