PowerShell 7.0.2找不到DisplaySwitch.exe
在具有管理员权限的Powershell 7.0.2会话中,我发现我无法列出或调用PowerShell 7.0.2找不到DisplaySwitch.exe,powershell,Powershell,在具有管理员权限的Powershell 7.0.2会话中,我发现我无法列出或调用C:\Windows\System32\DisplaySwitch.exe 我可以从cmd.exe和powershell.exe(又名“Windows powershell”)调用该应用程序,但奇怪的是,它甚至不能被pwsh.exe(新的powershell)列出 到目前为止我已经尝试过的事情: PS>显示开关 返回DisplaySwitch:术语“DisplaySwitch”不被识别为cmdlet、函数、脚本文件或
C:\Windows\System32\DisplaySwitch.exe
我可以从cmd.exe
和powershell.exe
(又名“Windows powershell”)调用该应用程序,但奇怪的是,它甚至不能被pwsh.exe
(新的powershell)列出
到目前为止我已经尝试过的事情:
PS>显示开关
返回DisplaySwitch:术语“DisplaySwitch”不被识别为cmdlet、函数、脚本文件或可操作程序的名称。
或者PS>ls C:\Windows\System32\Display*.exe
,它不返回任何内容
上述两个命令在经典的Windows Powershell(v5.1)上也可以正常工作。也就是说,它打开显示开关工具并分别列出
DisplaySwitch.exe
路径。您是否安装了32位版本的PowerShell 7?干杯。就这样。安装x64版本后,它能够列出该文件。