首頁  >  文章  >  系統教程  >  如何防止 Windows 10 關閉

如何防止 Windows 10 關閉

WBOY
WBOY原創
2024-08-02 10:32:31372瀏覽

出於某種原因,您打算讓 Windows 10 PC 運行一段時間,並且您不希望 Windows 10 PC 被其他人意外關閉,因為事情可能會失控。如果您正在尋找停用關閉選項的方法,請閱讀以下有關如何防止 Windows 10 關閉的指南

  • 解決方案1:刪除關機按鈕
  • 解決方案 2:停用電源按鈕
  • 解決方案 3:停用命令提示字元
  • 解決方案 4:阻止第三方軟體
  • 解決方案 5:封鎖選定的使用者

解決方案1:刪除關機按鈕

這種方式直接幫你隱藏關機按鈕

步驟 1:按鍵盤上的 Win + S 開啟 Windows 搜尋框,然後在框中輸入 regedit。當您看到最佳匹配時,請點擊註冊表編輯器

How to Prevent Windows 10 from Shutting down

步驟 2:在登錄編輯器視窗中,導覽至以下路徑:ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftPolicyManagerdefaultStartHideShutDown.

How to Prevent Windows 10 from Shutting down

第 2 步:雙擊右側窗格中名為 value 的鍵,並將值資料重設為 1.

How to Prevent Windows 10 from Shutting down

然後關機按鈕將從開始功能表中刪除。只有睡眠按鈕和重啟按鈕。

How to Prevent Windows 10 from Shutting down

解決方案 2:停用電源按鈕

此解決方案將使使用者無法存取電源按鈕。您可以透過群組原則編輯器和登錄編輯器來達到目標。

在所有 Windows 10 版本中,群組原則編輯器和登錄編輯程式均在專業版、企業版和教育版中提供。但Windows 10 Home僅支援登錄編輯程式。因此,如果您使用的是 Windows 10 Home,請選擇下面的選項 2 來停用電源按鈕。

  • 選項 1:使用群組原則編輯器阻止 Windows 10 關機
  • 選項 2:使用登錄編輯程式阻止 Windows 10 關機

選項 1:使用群組原則編輯器阻止 Windows 10 關機

第 1 步:找到「在此輸入搜尋」框。

第2步:將群組原則複製到搜尋框中,然後按一下最佳比對編輯群組原則

How to Prevent Windows 10 from Shutting down

步驟3:彈出本機群組原則編輯器後,前往路徑:使用者設定>管理範本>開始功能表和工作列。找到並雙擊右側窗格中的「刪除對關機、重新啟動、睡眠和休眠命令的存取權選項。

How to Prevent Windows 10 from Shutting down

步驟 4:在下列對話方塊中,選擇啟用選項以防止 Windows 10 關閉。按一下應用並確定以確認設定。

How to Prevent Windows 10 from Shutting down

然後你會發現電源按鈕不可用。

How to Prevent Windows 10 from Shutting down

選項 2:使用登錄編輯程式阻止 Windows 10 關機

步驟1:在Windows搜尋框中輸入regedit,然後按Enter開啟註冊表編輯器.

步驟2:出現登錄編輯程式後,請依照路徑:ComputerHKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPolicies

步驟3:右鍵點擊政策,然後按一下新建>金鑰。 新密鑰應以“Explorer”命名。

How to Prevent Windows 10 from Shutting down

Step 4: Right-click the new key "Explorer" at the left-hand pane. Click on New and select DWORD (32-bit) Value from the next context menu. Name the value as "NoClose".

How to Prevent Windows 10 from Shutting down

Step 5: Double-click the value "NoClose", set its value data to 1 in the pop-up dialog. Click OK to save the change.

How to Prevent Windows 10 from Shutting down

Step 6: Press Ctrl + Alt + Del to sign out Windows 10 PC. After signing in, you will find the Power button inaccessible. If the Power button is still available after the first trial, try a few more times to sign out and in through Ctrl + Alt + Del screen.

How to Prevent Windows 10 from Shutting down

Solution 3: Disable Command Prompt

Apart from the Shutdown button, others can also shut your computer down with Command Prompt. Therefore, it is suggested to disable Command prompt to prevent Windows 10 from shutting down.

How to Prevent Windows 10 from Shutting down

Solution 4: Prevent Third-party Software

Others might make use of the third-party applications to shut down your PC. To prevent this from happening, you can restrict others from installing any software that is used for shutting down the Windows 10 PC.

Solution 5: Prevent Selected Users

This way will prevent the users and groups from shutting down Windows 10 by removing their shutdown right.

Step 1: Open Local Group Policy Editor. Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment. Locate and double-click Shut Down the System.

How to Prevent Windows 10 from Shutting down

Step 2: Select the user or group who you want to prevent from shutting down Windows 10 PC, and click the Remove button. You should retain administrators to make sure you can shut down normally.

How to Prevent Windows 10 from Shutting down

以上是如何防止 Windows 10 關閉的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn