'reg' is not recognized as an internal or external command

os:windows

#1

The solution to this error is to add the path C:\Windows\System32\ to the Environment Variables:

  1. Right click the My Computer icon then choose properties.
  2. Select the Advanced tab and then click Environment Variables.
  3. At the system variables panel, choose Path then click the Edit button.
  4. Add C:\Windows\System32\, the paths are separated by a semicolon.

We don’t know why this path may be missing because it should be default in a clean Windows installation but apparently it happens.