Hi,
Thank you for contacting Microsoft Community.
I understand that you have deleted system environment variable and you can’t do a system restore, which could have fixed the issue.
Please perform the below steps in order to restore system environment variable:
Modify the registry values:
Refer to the article below before modifying registry values:
How to back up and restore the registry in Windows
This method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully.
For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft
Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/)
Restoring User PATH:
- Press “Windows key” +
“R”.
- Type in Regedit
- Click ok
- Select HKEY_USERS
- File->Load Hive
- Navigate to your user folder, click the little button to the right of
"Open" for "Show Previous Versions"
- Select appropriate revision
- Select NTUSER.DAT (must have Show Hidden Files enabled)
- Give it a name (e.g. "Old")
10.
Navigate to
"Old"\Environment
Restoring System PATH:
- Press “Windows key” +
“R”.
- Type in Regedit
- Click ok
- Select HKEY_LOCAL_MACHINE
- File->Load Hive
- Navigate to C:\Windows\System32\config\RegBack, click the little button to the right of "Open" for "Show Previous Versions"
- Select appropriate revision
- Select SYSTEM.OLD
- Give it a name (e.g. "Old")
10.
Navigate to HKEY_LOCAL_MACHINE"Old"\ControlSet001\Control\Session Manager\Environment
11.
Open the PATH value and copy it to clipboard, then paste into system environment variables screen.
Note that for System, depending on how long ago this was, you can just go back into HKLM(old control set version)\Control\Session Manager\Environment without loading an old hive, but this is a generally useful
way to apply "Restore Previous Versions" to the registry.
Please perform system restore after completing above steps. If you still can’t access old restore point you may have to perform System Repair.
Hope this information helps, please get back to us if you need further assistance.