Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PowerShell 7.0.2找不到DisplaySwitch.exe_Powershell - Fatal编程技术网

PowerShell 7.0.2找不到DisplaySwitch.exe

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、函数、脚本文件或

在具有管理员权限的Powershell 7.0.2会话中,我发现我无法列出或调用
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版本后,它能够列出该文件。