A__*_*A__ 7 powershell resolution windows-10-pro
客户的 IT 管理员要求我“编写一个 powershell 脚本,在启动时手动设置分辨率”。如果他们要求我这样做的话,想必这是可能的。我完全没有使用 powershell 的经验。我的脚本/命令及其错误如下:
Set-DisplayResolution -Width 1024 -Height 768
Run Code Online (Sandbox Code Playgroud)
Set-DisplayResolution
不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。
Set-ScreenResolution -Width 1024 -Height 768
Run Code Online (Sandbox Code Playgroud)
Set-ScreenResolution
不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。
SetDisplayResolution -Width 1024 -Height 768
Run Code Online (Sandbox Code Playgroud)
SetDisplayResolution
不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。
我缺少什么?谢谢。
小智 12
您需要安装Powershell-Gallery 中的DisplaySettings模块才能获得此功能。
Install-Module -Name DisplaySettings
Run Code Online (Sandbox Code Playgroud)
Set-DisplayResolution -Width 800 -Height 600
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
62681 次 |
最近记录: |