How to Use Powershell to Get Local Users And Groups?

This article shows how to get local users and groups using PowerShell. You’ll learn clear steps and commands to list all users, groups, and members on your Windows system.

Posted by @Irene November 12, 2025 Updated By @Irene October 21, 2025

Managing user accounts effectively is key to keeping your Windows system secure and well-organized. Whether you want to add a family member, set up a limited account for specific use, or adjust user permissions, knowing how to view local users and groups is a vital skill. Unlike domain accounts used in company networks, local accounts exist only on your computer and control access and permissions for that device. If you want to use Powershell to get local users and groups in Windows. This guide will share the specific steps for you.

How to use Powershell to get local users and groups?

PowerShell is a powerful tool in Windows that allows you to manage local users and groups efficiently. With a few simple commands, you can view all user accounts, check their group memberships, and manage system permissions directly from the command line. This method is especially useful for administrators who need to monitor or configure multiple systems quickly.

Step 1. Open PowerShell

Press Win + X and select Windows PowerShell (Admin) to run it with administrator privileges.

Step 2. Get the List of Local Users

Type the following command and press Enter:

Get-LocalUser

This command lists all local user accounts on your computer.

Step 3. Get the List of Local Groups

Run this command to view all groups:

Get-LocalGroup

It shows all local groups available on the system.

Step 4. Get Members of a Specific Group

To check which users belong to a certain group, use

Get-LocalGroupMember -Group "Administrators"

Replace "Administrators" with any other group name to see its members.

Step 5. Get All Local Groups and Their Members

To list all groups and their members at once, run

Get-LocalGroup | ForEach-Object { Write-Host "`nGroup:" $_.Name; Get-LocalGroupMember $_.Name

This command loops through all groups and displays each one along with its members.

What to do if you can't use Powershell to get local users and groups?

Some users say that they find all groups missing from the local users and groups after entering the command. It often happens because you are using a Windows Home edition. This version does not include the Local Users and Groups feature, as it is only available in Windows Pro, Enterprise, and Education editions. In other cases, the problem may occur due to system errors or corrupted files that prevent the tool from loading properly. 

At this time, you will need a professional tool like AOMEI Partition Assistant. While this tool is mainly used for disk and partition management, it also supports smooth system performance, which is essential when PowerShell or other management tools fail to run properly. In some Windows editions, such as Windows 11 Home, the Local Users and Groups feature is not available, making indirect tools like AOMEI even more valuable.

By safely resizing, moving, or repairing partitions, it helps avoid system corruption that might block PowerShell commands. Its Boot Repair and rebuild BCD features can also fix startup issues that prevent login or user access. It ensures the environment needed for PowerShell commands works correctly and keeps your Windows system running efficiently.

AOMEI Partition Assistant

The Best Windows Disk Partition Manager and PC Optimizer

How to Manage Users and Groups with AOMEI Partition Assistant

Download, install, and launch AOMEI Partition Assistant. On the main interface, click "Tools" in the top menu and select the "Windows Tools" option. In the new window, navigate to the "Users & Groups" section in the left-hand pane. This will display all existing user accounts and groups on your system in a clean, organized list.

From here, you can easily perform all necessary administrative tasks. You will see intuitive buttons to:

Create User: Set a new username and password.

Delete User: Remove an existing account.

Edit User Properties: Change a user's password or other details.

Manage Group Membership: Add a user to a group (like Administrators or Remote Desktop Users) or remove them with just a few clicks.

Conclusion

In conclusion, using PowerShell to get local users and groups is a fast and efficient way to manage user accounts in Windows. However, if PowerShell is unavailable or not functioning properly, AOMEI Partition Assistant offers a reliable alternative. It provides an easy interface to view, create, and manage users and groups, ensuring your Windows system stays secure, organized, and running smoothly.