电源选项里有个 Console lock display off timeout ,最短可以设置成 1 分钟
darklights
2022-05-27 20:39:35 +08:00
新建一个 TurnOffMonitor.ps1 ,输入内容: Start-Sleep 2; (Add-Type '[DllImport("user32.dll")]public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2) | Out-Null