Fix: Apps Getting Resetted to TWINUI

There is a problem in Windows where when opening a file, the computer sets the default application for opening any file to type to the type “TWINUI”. Most of the time you can open the file by right-clicking it and select the open with option. However, you would not be able to set any default program for opening any file type.

“TWINUI” is a bug in Windows 10 that shows that users cannot change their default program in the Setting application and all their default applications reset to “TWINUI”.

It means that user cannot set default programs. It may due to numerous reasons including system registry corruption or maybe some other reason.

Solution 1: Remove TWINUI through Windows power shell

We can try to remove TWINUI through windows power shell on Windows 10. We will enter the commands to set each program type to its default. Your file opening preferences will be reset and you would have to set them again.

  1. Press Windows + S to launch your computer’s start menu and type “windows power shell” in the dialogue box Right click on the first result and select “Run as administrator”.

  1. Once the application has been opened, copy paste this line into it and press Enter. Now Windows will set each file type to the default opening program. This process might take a while as all of your file types are being scanned and their settings changed.
    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode - Register "$($_.InstallLocation)\AppXManifest.xml"}


  1. Once it’s completed close the window and then try opening the desired file type in default application launcher.
  2. Restart your computer to make sure all changes take place and check if the problem at hand got fixed

Solution 2: TWINUI problem with Photos application

We can try deleting contents of Photos configuration to reset it. Refer to this method if the first one didn’t work for you. Also, don’t delete the entire folder. We only need to delete the contents of the folder and restart your computer in order for the changes to take place.

  1. Press Windows + R button to launch the Run
  2. Type:
    %appdata%\..\Local\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState
  1. You might want to copy all the contents of the folder elsewhere so you can always restore them if anything goes wrong. Once you have safely copied the files, delete all the contents of the folder.

  1. Restart your computer and check if the issue at hand still persists.

Solution 3: Running System File Checker

It may be possible that your system configuration files are corrupt. Because of this, the computer sets the preference for all file type to TWINUI. We can try running the windows utility and make sure that no files are missing or corrupt. If they are, Windows will fix them.

  1. Press Windows + R to launch the Run Type” cmd” in the dialogue box and press Enter. This will launch the command prompt. Sometimes, you might need to open the prompt as administrator to carry out this solution.
  2. Type “sfc /scannow” and press Enter. Now Windows will start checking all the system files and look for any irregularities. This process might take a while.

  1. If any errors are found and fixed, restart your computer so all changes can take place and check if the problem got solved.

Solution 4: Install the latest Windows updates

Windows roll out important updates targeting the bug fixes in the operating system. One of the bugs is our case; the problem with files not opening properly with the default program. If you are holding back and not installing the Windows update, we strongly recommend that you do. Windows 10 is the latest Windows operating system and new operating systems take a lot of time to get perfect in every regard.

There are a lot of issues still pending with the OS and Microsoft rolls out frequent updates to target these issues.

  1. Press Windows + S button to launch your start menu’s search bar. In the dialogue box type “Windows update”. Click the first search result which comes forward.

  1. Once in the update settings, click on the button which says “Check for updates”. Now Windows will automatically check for updates available and install them. It may even prompt you for a restart.

  1. After updating, check if your issue got fixed.

Solution 5: Restoring your system

If all the above methods don’t work, we can try restoring your system to the last system restore point. Save all your work correctly and backup any important data. Do note that all the changes to your system configurations after the last restore point will be removed.

  1. Press Windows + S to launch the start menu’s search bar. Type “restore” in the dialogue box and select the first program which comes in the result.

  1. One in the restore settings, press System Restore present at the beginning of the window under the tab of System Protection.

  1. Now a wizard will open navigating you through all the steps to restore your system. Press Next and proceed with all the further instructions.

  1. Now select the restore point from the list of options available. If you have more than one system restore points, they will be listed here.

  1. Now windows will confirm your actions for the last time before it starts the system restore process. Save all your work and backup important files just in case and proceed with the process.

You can learn more about system restore to gain more knowledge about what it does and what are the processes involved.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

19
    EA
    Exhibit A Jun 30, 2018

    Good article aside from that though, the power shell tip worked like a charm (even if I did have to input it manually).

      GW
      Gina Walker Aug 8, 2018

      Yes, can’t copy string as implied.

    GW
    Gina Walker Aug 8, 2018

    Good information. Cannot copy and paste strings as they are images and not text. For me – Step 1 works for the current login and then reverts when system is restarted. Went through rest of steps and a rebuild is in store. This is a pretty big bug and very disappointing. Thanks for the contribution. Hope it works for others.

    NF
    Nick Falzone Sep 21, 2018

    It would be helpful if you say “copy paste this line” and it was actual text and not an image!

      KA
      K. Arrows Author Oct 6, 2018

      Removed images, added strings. Thanks

    AN
    Alexey Neustroev Sep 29, 2018

    Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)AppXManifest.xml”}

    Reply
      ER
      erictbar Jan 4, 2019

      The string in the article has a space between the dash and “Register”, copied it from this comment and it worked.

      Reply
      NH
      nhguy Nov 8, 2019

      Thanks for posting the corrected powershell script. Worked like a charm.

      TM
      The Welsh Muppet Feb 2, 2020

      Copied it from this comment and it worked for me 🙂

    TC
    Timothy Cowman Nov 9, 2018

    none of these things worked for me. twinui has taken over almost every file type listed on the windows default app settings.

    SA
    SamMoss May 7, 2019

    none of the hints or whatever worked TWINUI is still the default app for photos. System Restore also did not fix the issue; going to have to go for the ‘nuke it’ just reformat and start the hell over again….grrrr

    ZE
    Zeus Jun 11, 2019

    Yes, all default Windows Apps are malfunction. How can i back? Win 10 1586

      SW
      Shane Warren Author Sep 10, 2019
    ZE
    Zeus Jun 11, 2019

    Yes, all default Windows Apps are malfunction. How can i back?

      SW
      Shane Warren Author Sep 10, 2019

      You can check out our other article on this matter over here: https://appuals.com/fix-windows-10-apps-not-working/

    SW
    Shane Warren Author Sep 22, 2019

    Download this: https://www.youtube.com/redirect?redir_token=TIuA4XzYQMqCoDc2X1kD9-JoA1N8MTU2OTIzNTk0NkAxNTY5MTQ5NTQ2&q=https%3A%2F%2Fgithub.com%2FWillBixler%2FTwinUI-Fix&event=video_description&v=C7eOOYADmvU
    Right-click on the downloaded file and select Run with Powershell.
    After that, conduct an SFC scan and an DISM Scan.

    Reply
    ED
    Eric Davelaar Jan 29, 2020

    For me the problem actually started after a Windows update last week… .PDF files were now opening with Edge and pictures and media all were marked for TWINUI.
    I tried the Power Shell and System File Checker and still could not change the defaults… but I have been able to change doing this:
    – Browse to folder containing files types mentioned above
    – Right Click one of the files, and go to Properties
    – Use the ‘Change’ button next to the “Opens with” entry.

    Seems to have done the trick; computer was rebooted, user has logged in and has not had problems.

    Reply
      MG
      Maureen Gill Dec 23, 2020

      Thank you….that was the only way I was able to get the default app to change also.

    MG
    Maureen Gill Dec 23, 2020

    None of those worked for me. I had to download a video file and an audio file and right click on them (one at a time) and choose properties. Then I changed the file type to windows media player. It then automatically set it as the default application in control panel under default applications.

    Reply