当我在Windows 7 Enterprise 64位上启动Windows PowerShell时,它运行一个(不正确的)configuration文件 – 但是我看不到任何Windows PowerShellconfiguration文件中的PowerShell代码。 [编辑…]那么错误的configuration文件位于哪里? 我确定无法看到我正在使用的工具。
在64位Windows中,系统范围的PowerShellconfiguration文件有两组位置:
%windir%\system32\WindowsPowerShell\... %windir%\SysWOW64\WindowsPowerShell\...
要在32位应用程序中查看64位(即本机)版本的PowerShellconfiguration文件,您需要查看%windir%\ sysnative \ WindowsPowerShell 。 (在64位应用程序中,64位程序将位于(现在名称不正确的) system32中 。)
(是的,除非使用sysnative,否则可能会创build一个不能使用32位工具查看的错误PowerShellconfiguration文件 – 我今天早些时候意外地做了这个。