Fix Run does not save command history in Windows 10

I have several virtual machines with different builds of Windows 10 which I am using for testing purposes. One of my machines suddenly stopped saving the Run history. This was unexpected and very inconvenient, because I use the Run dialog a lot. Here is how you can fix it.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.