HotCakeX / Harden-Windows-Security

Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels | Read The Rationale https://github.com/HotCakeX/Harden-Windows-Security/blob/main/Rationale.md
https://hotcakex.github.io
MIT License
1.84k stars 143 forks source link

[Bug]: Optional Windows Features > Uninstalling Notepad (system) removes Notepad from Windows Sandbox #147

Closed 06b closed 1 year ago

06b commented 1 year ago

Tools category

Harden Windows Security Module

Does your system meet the requirements?

Is your Windows installation genuine?

Please explain the bug

I noticed when using Windows Sandbox that when I attempted to open a .txt file, Windows suggested opening the file with Windows Media Player. This confused me for a small bit of time until I remembered that the legacy notepad had been uninstalled and my system had the modern Notepad app, which as of right now Windows Sandbox doesn't include the modern desktop apps.

Wasn't sure if this was better suited as a bug report or if should have been a discussion post. This obviously isn't a big deal as alternative notepad applications exist and can be used within Windows Sandbox.

HotCakeX commented 1 year ago

Hi, That's expected since Windows Sandbox compiles its OS on the fly from the host OS files. Image files don't have a default app to be opened with in Sandbox either, so I just drop them on Edge. Windows Media Player legacy is uninstalled from the host so Sandbox is missing it even though it suggests it.

You can use VS Code web app (https://vscode.dev/) if you really need to edit text files in Windows Sandbox 🙂

HotCakeX commented 1 year ago

So I'm going to mark this as resolved, plz feel free to open new issues if you think there is something unexpected happening

You can either skip the optional Windows features category or after running it, navigate to Windows settings -> Apps -> Optional features and install Notepad again.

If you need more features in Windows Sandbox such as opening media files, you can also reactivate Windows Media player (legacy)


image