有时,您可能需要提取Windows计算机上所有用户帐户的列表。或者您可能想知道与您的用户帐户一起存在的隐藏用户帐户。为了帮助您,我们编制了五种方法的列表,您可以使用这些方法查看所有用户,包括由Windows创建的隐藏用户或您安装的第三方应用程序。他们来了:
注意:(NOTE: )本指南涵盖Windows 10、Windows 7 和Windows 8.1。如果您不知道您拥有的Windows版本,请阅读如何分辨我拥有的 Windows(11 种方式)(How to tell what Windows I have (11 ways))。
1. 如何使用Windows命令行查看用户(PowerShell & CMD列出用户)
此方法适用于命令提示符(Command Prompt)和PowerShell。打开您喜欢的命令行应用程序,键入net user,然后按Enter。网络用户(Net user)列出了在Windows PC 上配置了帐户的用户,包括隐藏的或禁用的用户帐户。用户帐户按(user accounts)Windows在幕后使用的内部名称列出,而不是按您登录Windows时看到的完整显示名称列出。
运行 net user 使Windows CMD显示用户
您还可以将网络用户(net user)列表存储在在记事本(opens in Notepad)或任何其他文本编辑器中打开的文本文件中。键入net user > filename.txt,“C:\Users\Your User Name.”下创建一个具有您提供的名称的文件。
使用 net user > filename.txt 将用户的网络列表保存到文件中
如果要将用户的CMD列表导出到保存在您选择的位置的文本文件,请输入net user > “path\filename.txt ” 并按Enter。
(Export)将用户的CMD列表(CMD)导出到指定位置的文件
一个巧妙的技巧是使用此命令查找有关特定用户帐户的信息:输入net user username并按Enter。然后,Windows 会显示有关该用户帐户的有用信息,例如上次设置密码的时间、过期时间(如果设置为过期)、它所属的组等等。
使用 net user 命令在CMD中获取有关用户帐户的详细信息
如果您想了解有关此命令及其所有参数的更多信息,请转到此文档页面:Net user。
2.如何使用PowerShell获取计算机上的所有用户
除了net user命令之外,您还可以在PowerShell中使用另一个命令来查看(PowerShell )Windows 10或以前版本中的所有用户: Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | Select-Object Name,FullName,Disabled。
Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | 选择对象名称、全名、(FullName)禁用
或者,如果您使用 Windows 10,您还可以运行更简单的get-localuser命令,正如我们的一位读者所指出的那样。
使用PowerShell获取计算机上的所有用户
3.如何在计算机管理中查看所有用户帐户的列表(Computer Management)
显示所有用户帐户(包括隐藏用户或禁用用户)的另一种方法涉及使用计算机管理(Computer Management)。打开计算机管理(Open Computer Management),然后转到“Local Users and Groups -> Users.”在右侧,您可以看到所有用户帐户、Windows在幕后使用的名称、它们的全名(或显示名称),在某些情况下,还有描述。
(Windows)计算机管理(Computer Management)中显示的Windows用户列表
双击或双击用户帐户以了解有关其属性和设置的更多信息,包括它所属的用户组(user groups)。
4.如何使用控制面板查看活动用户帐户列表(Control Panel)
一种不那么令人讨厌但也显示较少信息的方法涉及打开控制面板(opening the Control Panel)。启动后,根据您拥有的Windows版本,转到“用户帐户”(User accounts”)或“用户帐户和家庭安全” 。(User Accounts and Family Safety,”)
控制面板(Control Panel)中的用户(User) 帐户(Accounts)条目
然后,单击或点击用户帐户(User accounts)。
打开用户帐户设置
现在您可以看到您的用户帐户、有关它的信息以及几个链接。单击(Click)或点击“管理另一个帐户”链接。(“Manage another account.”)
管理另一个账户
现在您可以在Windows(Windows)中看到活动的、未隐藏的用户帐户,无论它们是本地帐户、管理员等。
控制面板(Control Panel)显示Windows计算机上的用户列表
使用此方法,您看不到隐藏或禁用的用户帐户。
5. 如何在Windows登录屏幕上查看活动用户帐户列表
显而易见且最直接的方法是在您登录Windows(Windows)之前查看登录屏幕。您应该在此屏幕上看到存在于Windows中的所有活动(非隐藏)用户帐户。(Windows)如果您使用的是Windows 10,此列表显示在登录屏幕的左下角。
登录屏幕上显示的 Windows 10 用户列表
如果您使用的是Windows 7,所有活动用户帐户都显示在前面和中间。
登录屏幕上显示的 Windows 7 用户列表
使用Windows 8.1登录屏幕时也是如此。
登录屏幕上显示的 Windows 8.1 用户列表
这种方法的缺点是您看不到隐藏或禁用的用户帐户。
您是否(Did)在 Windows PC 上发现了许多隐藏的用户帐户?
我们强烈建议您尝试前三种方法来识别Windows(Windows)计算机或设备上存在的所有用户帐户。您可能会惊讶地发现,您的某些应用程序创建了您不知道存在的隐藏用户帐户。在结束本教程之前,请在评论中分享您是否在 PC 上找到隐藏的用户帐户以及其中有多少。我们很想知道。
How do I view all the users on a Windows computer? (5 ways) -
Sometimes, you may need to extract a list of all the user accoυnts on a Windows computer. Or you may want to know the hidden user acсounts that exist alоngside your uѕer account. To help you out, we сompiled a list of fivе methods that you can use to see all the users, including the hidden ones created by Windows or third-рarty apps that you installed. Here they are:
NOTE: This guide covers Windows 10, Windows 7, and Windows 8.1. If you don’t know the Windows version that you have, read How to tell what Windows I have (11 ways).
1. How to see users using the Windows command line (PowerShell & CMD list users)
This method works both in the Command Prompt and PowerShell. Open the command-line app that you prefer, type net user, and press Enter. Net user lists the users that have accounts configured on a Windows PC, including hidden ones or disabled user accounts. The user accounts are listed by their internal names that Windows uses behind the scenes, not by their full display name that you see when you sign in to Windows.
Run net user to make Windows CMD show users
You can also have the net user list stored in a text file that opens in Notepad or any other text editor. Type net user > filename.txt, and a file with the name you provided is created under “C:\Users\Your User Name.”
Save the net list of users to a file using net user > filename.txt
If you want to export the CMD list of users to a text file that’s saved in a location you choose, enter net user > “path\filename.txt" and press Enter.
Export the CMD list of users to a file at a specified location
A neat trick is using this command to find information about a specific user account: type net user username and press Enter. Windows then displays helpful information about that user account, like when the password was set the last time, when it expires (if it’s set to expire), the groups it’s a part of, and more.
Getting details about a user account in CMD, using the net user command
If you want to know more about this command and all its parameters, go to this documentation page: Net user.
2. How to use PowerShell to get all users on a computer
Besides the net user command, here’s another command that you can use in PowerShell to view all users in Windows 10 or previous versions: Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | Select-Object Name,FullName,Disabled.
Get-WmiObject Win32_UserAccount -filter “LocalAccount=True” | Select-Object Name,FullName,Disabled
Alternatively, if you use Windows 10, you can also run the simpler get-localuser command, as pointed out by one of our readers.
Using PowerShell to get all users on a computer
3. How to see the list of all user accounts in Computer Management
Another method that displays all user accounts, including hidden users or disabled ones, involves using Computer Management. Open Computer Management, and go to “Local Users and Groups -> Users.” On the right side, you get to see all the user accounts, their names as used by Windows behind the scenes, their full names (or the display names), and, in some cases, also a description.
Windows list of users displayed in Computer Management
Double-click or double-tap on a user account to learn more about its properties and settings, including the user groups that it is part of.
4. How to see the list of active user accounts using the Control Panel
A method that is less geeky but which also displays less information involves opening the Control Panel. After you start it, go to “User accounts” or “User Accounts and Family Safety,” depending on the Windows version that you have.
The User Accounts entry from the Control Panel
Then, click or tap on User accounts.
Opening the User Accounts settings
Now you see your user account, information about it, and several links. Click or tap the link that says “Manage another account.”
Manage another account
Now you see the active, not-hidden user accounts in Windows, whether they are local accounts, administrators, etc.
Control Panel shows the list of users on a Windows computer
With this method, you cannot see hidden or disabled user accounts.
5. How to see the list of active user accounts on the Windows sign-in screen
The obvious and most straightforward method is to look at the sign-in screen just before you log into Windows. You should see all the active (not hidden) user accounts that exist in Windows on this screen. If you are using Windows 10, this list is shown in the bottom-left corner of the sign-in screen.
Windows 10 list of users shown on the sign-in screen
If you are using Windows 7, all active user accounts are displayed front and center.
Windows 7 list of users shown on the sign-in screen
The same is true when using the Windows 8.1 sign-in screen.
Windows 8.1 list of users shown on the sign-in screen
The downside of this method is that you cannot see hidden or disabled user accounts.
Did you find many hidden user accounts on your Windows PC?
We highly recommend trying the first three methods for identifying all the user accounts that exist on your Windows computer or device. You may be surprised to see that some of your apps created hidden user accounts that you had no idea existed. Before closing this tutorial, share in a comment whether you found hidden user accounts on your PC and how many of them were there. We are curious to know.