2

I've accidentally overwritten the environment variable PATH in Windows 8 (64 bit). How can I reset it? I'm scared to shut down the PC before fixing this problem.

Otherwise I might copy it from another PC that has the same OS (or Windows 8.1)?

2 Answers 2

6

The orginal PATH is:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;

If you want to recover your previous PATH setting take a look at Deleted Path environment variable, how to restore? .

3
  • So if i create a new varibile environmet with what you have written and name it Path I will not have problems to turn off my pc...?
    – FlamNight
    Nov 16, 2013 at 11:17
  • 1
    Oh! Great! i've solved the problem! :) Many thanks
    – FlamNight
    Nov 16, 2013 at 12:01
  • How did you solve the problem? Feb 10, 2015 at 18:15
1

I restored my system to the version an hour ago, and I got my old path back, what i did was just go to Control Panel -> System and Security -> System -> Advanced system settings, select System Protection, click System Restore. Now just wait till the system gets restored (without losing any files, which is great), and the Path is restored as well! Hope this helps.

1
  • This is a great idea if System Restore is enabled. Unfortunately it's disabled by default, but definitely worth giving it a shot.
    – gronostaj
    Aug 21, 2022 at 15:13

You must log in to answer this question.

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