5

Launching mspaint or wordpad fails with this prompt. This happens when they are launched from any directory, with or without arguments.

My system is Windows 10 version 2004. I've installed some updates recently, but Dism /Online /Cleanup-Image /RestoreHealth didn't report any error.

I am aware of this post regarding wordpad. But in my case, all wordpad.exe instances fail with this error.

Any suggestion as to how to troubleshoot will be appreciated.

1

2 Answers 2

8

Follow these steps:

  1. Open Settings, Apps, Apps & features, Optional features.
  2. Select Microsoft Paint and click Uninstall.
  3. Select WordPad and click Uninstall
  4. Click the Add a feature option.
  5. Add (reinstall) Microsoft Paint and WordPad one by one.

Screenshot 01

Screenshot 02

2
  • 1
    Step 1 should be, "Open Settings, Apps, Apps & features, Optional features." Commented Oct 20, 2020 at 14:37
  • I cannot believe that Microsoft will have such a bug. (I have a rresh re-installation of Win 10 and come across the same problem ! cannot launch notepad/wordpad/mspaint !!!! ). Thanks for the hint.
    – Ken Lee
    Commented Oct 27, 2023 at 5:14
1

You can use a batch script for this:

@echo off
dism /Online /Remove-Capability /CapabilityName:Microsoft.Windows.WordPad~~~~0.0.1.0
dism /Online /Remove-Capability /CapabilityName:Microsoft.Windows.MSPaint~~~~0.0.1.0
ping localhost -n 4 >nul 2>&1
dism /Online /add-Capability /CapabilityName:Microsoft.Windows.WordPad~~~~0.0.1.0
dism /Online /add-Capability /CapabilityName:Microsoft.Windows.MSPaint~~~~0.0.1.0
Exit /b 0

Don't forget to run it as administrator

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .