How to make Movies & TV the default player by a COMMAND line or registry settings

Alfandary, Haim 21 Reputation points
2022-07-17T07:07:55.25+00:00

Hello,

In windows 10 I have used a registry entry to make Movies & TV the default application as listed below:

I guess that in Windows 11 Movies & TV ProgId have changed, since this code does not work anymore for me and MP4 is set as the default player.

Is there a simpler method of doing this process w/o manually having to go to settings?

I have to do it on many systems in an automated way.

Thanks in advance.

set registry

$ProgId = "AppX6eg8h5sxqq90pv53845wmnbewywdqq5h"

foreach($ext in $extentions) {

Write-Host "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$ext\UserChoice"   

Remove-Deny -Extention $ext    

Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$ext\UserChoice" -Name "ProgId" -Value $ProgId   

}

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,926 questions
0 comments No comments
{count} votes

Accepted answer
  1. beatricedellinger 75 Reputation points
    2024-10-09T10:21:08.8633333+00:00

    Hello Microsoft Community,

    To make Movies & TV the default video player in Windows 11 using a command line or registry settings, follow these steps:

    1. Open the Registry Editor (press Windows + R, type regedit, and hit Enter).
    2. Navigate to the following path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mp4\UserChoice.
    3. Modify the ProgId key value to "AppXk0g4vb8y8v6b9bkx2kf4k6bhtj7m3hfj", which corresponds to the Movies & TV app.
    4. If you want to change other file types, repeat the same process for those extensions like .mkv, .avi, etc.

    Alternatively, if you're looking for a more automated solution, PowerShell commands could be used with the Set-DefaultAppAssoc cmdlet, but unfortunately, this isn't as straightforward for Movies & TV due to its integration as a UWP app.

    Given the changes in Windows 11, the ProgId may vary, and a manual check through the settings might be required if the registry modification doesn't work. I recommend using the default Movies & TV app for its seamless performance and features in handling various video formats.

    Best Regards!!

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. LAILA.TAIK 121 Reputation points
    2022-07-17T14:31:03.067+00:00
    0 comments No comments

  2. Ian Xue 37,711 Reputation points Microsoft Vendor
    2022-07-18T09:34:21.68+00:00

    Hi @Alfandary, Haim ,

    I'm afraid you have to set the default apps in the GUI for security reasons. To set the default apps in the registry, you have to set the Hash value in addition to the ProgId value, however, the algorithm that generates the Hash value is still kept undisclosed.

    Best Regards,
    Ian Xue

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Ramesh Srinivasan 176 Reputation points
    2022-07-19T10:46:57.293+00:00

    Hi,

    To set file associations using command-line, you need a third-party tool named SetUserFTA.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.