
嘗試在 Windows PowerShell 中使用「Set-DisplayResolution」指令時,Windows 10 企業版無法辨識該指令。
然而,這應該根據官方文件得到支持這裡。
已嘗試在管理模式下執行 PowerShell 並停用群組原則:“停用顯示控制面板”可在此處找到:“使用者設定\管理範本\控制台\顯示”
所有這些都會導致相同的錯誤訊息:
PS C:\> Set-DisplayResolution
Set-DisplayResolution : The term 'Set-DisplayResolution' is not recognized as the name of a cmdlet, function, script fi
le, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ Set-DisplayResolution
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-DisplayResolution:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
使用相關的「Get-DisplayResolution」命令可以找到類似的訊息,並且在 Windows PowerShell ISE 的模組面板下也找不到類似的訊息。
答案1
根據您連結的 MDSN 文檔,這些命令僅適用於伺服器核心安裝:
Set-DisplayResolution cmdlet 可變更伺服器核心模式下 Windows Server® 2012 的顯示解析度。
Get-DisplayResolution cmdlet 顯示伺服器核心模式下 Windows Server® 2012 的顯示解析度。