
刪除本地賬戶無法登錄電腦

If you have multiple user accounts on your computer, you might find it annoying to have to click on the icon for your username each time you start up the computer. To remedy this problem, you can hide a user account with a registry hack.
如果您的計算機上有多個用戶帳戶,則每次啟動計算機時都必須單擊用戶名圖標,這會很煩人。 要解決此問題,您可以隱藏帶有注冊表黑客的用戶帳戶。
If you aren’t the only actual active user on the system, then you shouldn’t really hide the other user accounts, although you could set your main account to logon automatically and then use the Switch User function only when necessary.
如果您不是系統上唯一的實際活動用戶,那么您不應真正隱藏其他用戶帳戶,盡管您可以將主帳戶設置為自動登錄,然后僅在必要時使用“切換用戶”功能。
NOTE: You can only hide local Windows accounts, not Microsoft accounts. However, if you really want to hide a Microsoft account and not delete it, you can revert your Windows 10 Microsoft account to a local one.
注意:您只能隱藏本地Windows帳戶,不能隱藏Microsoft帳戶。 但是,如果您確實要隱藏而不是刪除Microsoft帳戶,則可以將Windows 10 Microsoft帳戶還原為本地帳戶。
This tweak is most useful for when you have extra user accounts set up for file sharing or other purposes.
當您為文件共享或其他目的設置了額外的用戶帳戶時,此調整最有用。
Standard warning: The Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.
標準警告:注冊表編輯器是一個功能強大的工具,濫用它會使您的系統不穩定甚至無法運行。 這是一個非常簡單的技巧,只要您按照說明進行操作,就不會有任何問題。 也就是說,如果您以前從未使用過它,請在開始之前考慮閱讀有關如何使用注冊表編輯器的信息。 并在進行更改之前一定要備份注冊表(和您的計算機!)。
Before changing the registry, we’ll check the exact name of the user(s) we want to hide. A quick way to do this is to press Windows+R on your keyboard and enter netplwiz
in the Open box. Then, click “OK”.
在更改注冊表之前,我們將檢查要隱藏的用戶的確切名稱。 一種快速的方法是按鍵盤上的Windows + R, netplwiz
在“打開”框中輸入netplwiz
。 然后,單擊“確定”。

On the User Accounts dialog box, make sure the Users tab is active. Look in the “Users for this computer” list and note the exact name of the user(s) you want to hide. Click or “Cancel” to close the dialog box since you’re not making any changes here.
在“用戶帳戶”對話框上,確保“用戶”選項卡處于活動狀態。 在“此計算機的用戶”列表中查找,并記下要隱藏的用戶的確切名稱。 由于您未在此處進行任何更改,因此單擊或“取消”以關閉對話框。
NOTE: The way you can tell whether an account in the Users for this computer list is a local account is that local accounts are listed by the name you gave the account when you created it. Microsoft accounts are listed by the email address of the account.
注意:可以確定“此計算機的用戶”列表中的帳戶是否為本地帳戶的方式是,使用創建帳戶時所給的名稱列出本地帳戶。 Microsoft帳戶按該帳戶的電子郵件地址列出。

Now that you know the name of the user(s) you want to hide, we’ll tweak the registry to hide them. Open the Registry Editor by clicking on Start and typing regedit
. Press Enter to open Registry Editor, or click on regedit under Best match.
現在您知道了要隱藏的用戶的名稱,我們將調整注冊表以隱藏他們。 通過單擊開始并鍵入regedit
打開注冊表編輯器。 按Enter打開注冊表編輯器,或單擊“最佳匹配”下的regedit。

In the Registry Editor, use the left sidebar to navigate to the following key:
在注冊表編輯器中,使用左側邊欄導航至以下鍵:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Create a new key under the Winlogon key by right-clicking on the Winlogon key and then selecting New > Key from the popup menu.
右鍵單擊Winlogon密鑰,然后從彈出菜單中選擇“新建”>“密鑰”,在Winlogon密鑰下創建一個新密鑰。

Name the new key “SpecialAccounts”.
將新密鑰命名為“ SpecialAccounts”。

Next, we’ll create a another new key, this time under the newly created SpecialAccounts
key. Right-click on the SpecialAccounts
key and select New > Key again.
接下來,我們將在新創建的SpecialAccounts
密鑰下創建另一個新密鑰。 右鍵單擊SpecialAccounts
鍵,然后再次選擇“新建”>“鍵”。

Name this key “UserList”.
將此鍵命名為“ UserList”。

Now, we’re going to create a new value inside the UserList
key. Select the UserList
key, right-click in the right pane, and choose New > DWORD (32-bit) Value.
現在,我們將在UserList
鍵中創建一個新值。 選擇UserList
鍵,右鍵單擊右窗格,然后選擇“新建”>“ DWORD(32位)值”。

Give this value the name of the user account that you want to hide, and then create a new DWORD (32-bit) Value for each additional user account you want to hide.
為該值提供要隱藏的用戶帳戶的名稱,然后為每個要隱藏的其他用戶帳戶創建一個新的DWORD(32位)值。

For each value you create, make sure the Data value is zero (0).
對于您創建的每個值,請確保數據值為零(0)。

If, for some reason, the Data value is not zero, double click on the value name in the right pane and enter 0 in the Value data box on the Edit DWORD (32-bit) Value dialog box. Click “OK”.
如果由于某種原因,數據值不為零,請雙擊右窗格中的值名稱,然后在“編輯DWORD(32位)值”對話框的“值數據”框中輸入0。 點擊“確定”。

Go to File > Exit to close the Registry Editor.
轉到文件>退出以關閉注冊表編輯器。

Log out of your Windows account by opening the Start menu, clicking on your user name in the upper-left corner, and selecting “Sign out”.
通過打開“開始”菜單,單擊左上角的用戶名,然后選擇“注銷”,注銷Windows帳戶。

Now, there are no other users listed in the lower-left corner of the logon screen.
現在,登錄屏幕的左下角沒有列出其他用戶。

NOTE: Make sure not to hide your last administrator account using this tweak, or you won’t be able to log in as an administrator anymore.
注意:請確保不要使用此調整隱藏您的上一個管理員帳戶,否則您將無法再以管理員身份登錄。
At this point, the user account should be completely hidden from everywhere. If you want to show the account again, open the registry editor and change the value for the user name on the right that you want to show again to 1. If you want to show all the user accounts on the logon screen again, you can simply delete the SpecialAccounts key. The UserList key and all the user name values you added as values inside the UserList key are also deleted.
在這一點上,用戶帳戶應該對任何地方都完全隱藏。 如果要再次顯示該帳戶,請打開注冊表編輯器,然后將要再次顯示在右側的用戶名的值更改為1。如果要再次在登錄屏幕上顯示所有用戶帳戶,則可以只需刪除SpecialAccounts鍵。 UserList鍵以及您作為UserList鍵中的值添加的所有用戶名值也將被刪除。
Note that if you hide a user account using this registry hack, you won’t even be able to use the Switch User menu on the Start menu to get to that user account, and the account will also be hidden from the UAC dialog prompt, the Control Panel, and even from the Settings app.
請注意,如果您使用此注冊表黑客隱藏用戶帳戶,甚至將無法使用“開始”菜單上的“切換用戶”菜單來訪問該用戶帳戶,并且該帳戶也將從UAC對話框提示中隱藏,控制面板,甚至從“設置”應用中。
If you’re trying to decide whether you want an account to be a Microsoft account or a local one, here’s a list of all the features that require a Microsoft account on Windows 10, so you can decide whether you need access to these features. We’ve also discussed how to set up and configure user accounts on Windows 10.
如果您要決定是將一個帳戶設為Microsoft帳戶還是本地帳戶,以下是Windows 10上需要Microsoft帳戶的所有功能的列表,因此您可以決定是否需要訪問這些功能。 我們還討論了如何在Windows 10上設置和配置用戶帳戶。
翻譯自: https://www.howtogeek.com/howto/windows-vista/remove-user-accounts-from-the-logon-screen-in-windows-vista/
刪除本地賬戶無法登錄電腦