Eu tenho um problema misterioso na minha máquina. Periodicamente eu acho que meu caminho na máquina com Windows 7 é definido como
%SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Chocolatey\bin;C:\GnuWin\bin;C:\sysinternals;C:\Program Files (x86)\CVSNT\
Eu tenho que reiniciar o explorer.exe e reabrir minhas janelas do console para corrigir isso. Meu caminho do sistema de HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
é
C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files\NirSoft;c:\Program Files (x86)\bind9;C:\Program Files (x86)\CollabNet\Subversion Client;C:\Program Files (x86)\PHP;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio Shared.0\DLLShared;C:\Program Files-Zip;C:\Program Files (x86)\KDiff3;C:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn\;C:\Program Files\Microsoft SQL Server0\Tools\Binn\;C:\Program Files\Microsoft SQL Server0\DTS\Binn\;c:\Program Files (x86)\CollabNet\Subversion Client\;C:\Program Files\Dell\DW WLAN Card;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server0\DTS\Binn\;C:\Program Files\Apache Software Foundation\apache-ant-1.8.2\bin;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\PHP\wsf_c\lib\;c:\Program Files (x86)\p-nand-q.com\GTools;c:\springsource\maven-2.2.1.RELEASE\bin;c:\Program Files\Apache Software Foundation\axis2-1.5.4\bin;c:\Program Files\TortoiseHg;C:\Program Files (x86)\NuGet;C:\NuGet\bin;C:\Program Files\Microsoft SQL Server\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Tools\Binn\;C:\Program Files\Microsoft SQL Server0\Tools\Binn\Redist\;C:\Program Files\Dependency Walker;C:\Program Files (x86)\Nmap;C:\Program Files\Oracle\VirtualBox;c:\Python27\Scripts;C:\Program Files\ILSpy2;C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools\;C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools\Best Practices Analyzer\;C:\Program Files (x86)\Windows Installer XML v3.5\bin;c:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn\;c:\Program Files\Microsoft SQL Server0\Tools\Binn\;c:\Program Files\Microsoft SQL Server0\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mercurial\;C:\Program Files (x86)\nant-0.92\bin;C:\Program FilesGen\mongodb-win32-x86_64-2008plus-2.2.0\bin;C:\Program Files (x86)\Git\bin
Meu caminho no nível de usuário de HKEY_CURRENT_USER\Environment
é
C:\Chocolatey\bin;C:\GnuWin\bin;C:\sysinternals;C:\Program Files (x86)\CVSNT\
Parece que algo está substituindo meu caminho de ambientes por %SystemRoot%\system32\WindowsPowerShell\v1.0\;
mais o conteúdo de HKEY_CURRENT_USER\Environment
sem o conteúdo de HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
Alguma idéia do que poderia ser a causa disso ou como eu poderia registrá-lo?