I overwrote my environment variable PATH

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)?


Solution 1:

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? .