The solution to this error is to add the path
C:\Windows\System32\ to the Environment Variables:
- Right click the My Computer icon then choose properties.
- Select the Advanced tab and then click Environment Variables.
- At the system variables panel, choose Path then click the Edit button.
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.