删除本地账户无法登录电脑_如何从Windows的登录屏幕中删除本地用户帐户

删除本地账户无法登录电脑

删除本地账户无法登录电脑

00_lead_image_user_accounts_on_logon_screen

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 。 然后,单击“确定”。

01_opening_user_accounts_dialog

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帐户按该帐户的电子邮件地址列出。

02_noting_user_name

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。

03_opening_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密钥下创建一个新密钥。

04_creating_first_new_key

Name the new key “SpecialAccounts”.

将新密钥命名为“ SpecialAccounts”。

05_naming_specialaccounts_key

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键,然后再次选择“新建”>“键”。

06_creating_second_new_key

Name this key “UserList”.

将此键命名为“ UserList”。

07_naming_userlist_key

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位)值”。

08_creating_new_dword_value

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位)值。

09_naming_dword_value_with_user_name

For each value you create, make sure the Data value is zero (0).

对于您创建的每个值,请确保数据值为零(0)。

10_making_sure_dword_value_is_zero

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。 点击“确定”。

11_edit_dword_value_dialog

Go to File > Exit to close the Registry Editor.

转到文件>退出以关闭注册表编辑器。

12_closing_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帐户。

13_signing_out

Now, there are no other users listed in the lower-left corner of the logon screen.

现在,登录屏幕的左下角没有列出其他用户。

14_user_account_hidden

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/

删除本地账户无法登录电脑

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值