Windows 8.1 禁止在用户登录时关闭计算机

Windows 8.1 Disable shutdown computer while user is logged in

你好,最近我遇到了一些问题,我的室友经常关闭我的电脑,我失去了我以前做的大部分工作。所以坚持一点: 如何在 Windows 8.1 用户登录时禁用关闭计算机 - 我的意思是从锁定屏幕到无法在有人登录时关闭电脑,因为它似乎很迟钝 - 我阻止屏幕到不会丢失数据,任何人都可以来并单击 2 次将其关闭 - 由于该废话,已经失去了 2 天的项目进度。 另一件事是 pc 可能在没有任何信号的情况下随机唤醒,因为所有可能的信号都在设备管理器中被禁用(只剩下键盘)。 坚持那个 - 电脑随机唤醒并在使用 "powercfg -lastwake" 时我得到了最后一次唤醒计数的结果 - 0.

Here you go 用于禁用登录屏幕上的按钮。

In Group Policy, go to Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> Security Options

There is a setting labeled "Shutdown: Allow system to be shut down without having to log on" Set that to "Disabled"

That way, no one can shut it down unless they log on first, but by then they're covered by the group policy that removes the shut down option.