0X00000526

0x526 Group Exists Fix: Stop the 'Already Exists' Error

ERROR_GROUP_EXISTS means a local group name is taken. We'll rename or remove it fast, then show you why it happens and how to avoid it.

I know this error is infuriating—you're trying to create a group, and Windows just slaps you with ERROR_GROUP_EXISTS (0X00000526). You double-check the name, it's not in the list, but the system still says it's there. Don't throw your keyboard. Here's the fix.

The Quick Fix: Use Command Line to See and Remove

The fastest way to find the hidden group is net localgroup. Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin)).

net localgroup

This lists all local groups. Look for the name that's causing trouble. Even if you didn't create it, it might be a leftover from an old install or a script. If you see it and want it gone (careful—some are system groups), type:

net localgroup "GroupName" /delete

Replace GroupName with the actual name. Then try creating your group again. For example:

net localgroup "SalesTeam" /add

That usually does it. If the group isn't in the list but you still get 0X00000526, keep reading—this is the sneaky part.

Why This Worked

Windows has a separate namespace for local groups, and sometimes it gets out of sync. The GUI (Computer Management > Local Users and Groups) might not refresh properly, especially after a domain join or a failed script. net localgroup reads the actual SAM database, so it's the source of truth. Deleting the visible group frees up the name. If it's not visible there, the issue is usually a stale entry in the registry.

Less Common Variations: Hidden Groups and Registry Stalls

1. The Group Is Hidden from GUI

If the group doesn't appear in net localgroup but the error persists, check the registry. Run regedit as Administrator and go to:

HKEY_LOCAL_MACHINE\SAM\SAM

You'll need to click on SAM and then select Permissions to give Administrators full control (right-click > Permissions > check Full Control for Administrators). Then navigate to:

HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Groups

Look for a key with the group's name. If it's there, delete it. But be careful—deleting the wrong key can break user accounts. Only do this if you're comfortable with the registry. Back it up first (right-click > Export).

2. Domain Group Conflict

If you're on a domain-joined machine, a domain group might have the same name as your local group. Windows might block local creation because the name is reserved. Check with:

net group /domain

If that shows the name, you can't create a local group with the same name. Rename your local group or choose a different one.

3. The \\Rare Case of \\builtin Groups

Some groups are part of the built-in namespace (like Administrators). You can't delete or recreate those. If you tried to create a group called Administrators, you're out of luck—use a different name.

Prevention: Stop This From Happening Again

  • Check before you create: Use net localgroup before adding a new group. It takes two seconds.
  • Clean up old groups: If you uninstall software that creates groups, remove them manually. Don't leave orphans.
  • Script carefully: If you're automating group creation, add a check for existence first. Something like:
net localgroup | findstr /i "GroupName" || net localgroup "GroupName" /add

That runs the add only if the name isn't already there.

Quick Recap

  1. Run net localgroup to see all groups.
  2. Delete the offending group with net localgroup "Name" /delete.
  3. If not visible, check the registry (advanced).
  4. Check domain groups if on a network.
  5. Always verify before adding.

The trick is to trust the command line over the GUI. It's ugly, but it never lies. And if you're still stuck, reboot—seriously, a restart flushes the SAM cache and clears weird locks. I've seen it work more than once.

Now go create that group. You've got this.

Related Errors in Windows Errors
0X000000BC Fixing ERROR_INVALID_STARTING_CODESEG (0x000000BC) 0XC0262309 Fix 0XC0262309: Invalid VidPN Target Mode Set Error 0XC00D1BD5 Fix DRM Profile Not Found Error 0XC00D1BD5 in Windows Media Player 0XC0262322 Fix Error 0xC0262322: Invalid Monitor Source Mode

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.