Go to Properties in My computer → Advanced system settings → Advanced → Environment Variables.
Select 'PATH' from the list of system variables and edit and set PATH to
c:\windows\system32;
.
This will solve your problem.
This answer was taken from howtogeek.com.