0XC0000065

STATUS_GROUP_EXISTS (0xC0000065) Fix: Group Already Exists

Windows Errors Intermediate 👁 14 views 📅 May 27, 2026

You hit 0xC0000065 when Windows says a group already exists, usually during domain operations or local group creation. Here's how to fix it, from a 30-second check to a deep registry scrub.

The 30-Second Check: Is the Group Really There?

What's actually happening here is that Windows—whether it's a local machine or a domain controller—has already registered the group name. The error message 0xC0000065 (STATUS_GROUP_EXISTS) is Windows saying "I've already got one of those, no duplicates allowed." But sometimes the group is hidden, or you're looking in the wrong scope.

Real-world scenario: You're setting up a new department group called "Engineering-ProjectAlpha" in Active Directory Users and Computers, and boom—this error pops up. Or you're running net localgroup on a standalone Windows 10/11 machine to create a custom local group for file sharing permissions, and it fails.

  1. Check local groups first (if on a standalone machine): Open Command Prompt as admin and run net localgroup. Look through the list. Sometimes you created the group months ago and forgot.
  2. Check AD groups (if on a domain controller): Open Active Directory Users and Computers. Use the search function (right-click domain → Find). Search for the exact group name. Case-insensitive, but it's picky about spaces.
  3. Check built-in groups: Some names like "Administrators" or "Guests" are reserved. You can't create a second "Guests." Obvious, but I've seen people try.

If the group shows up in any of those checks—either you use it as-is, or delete it if it's stale. If it doesn't show up, move to the next fix.

The 5-Minute Fix: Run These Commands for a Clean Slate

Sometimes the group entry is stuck in a weird state—orphaned SID references, leftover from a failed install, or synced from another domain controller that's out of date. The quickest way to shake it loose is to use the command-line tools that bypass the GUI's cache.

For local groups:

net localgroup "GroupName" /delete
net localgroup "GroupName" /add

Even if you think the group doesn't exist, run the /delete anyway. It'll either succeed (meaning it WAS there but hidden), or throw a different error like "The specified local group does not exist." If it says that, good—then /add should work. If /add still gives 0xC0000065, you've got a deeper problem.

For Active Directory groups:

dsquery group -name "GroupName"
dsrm "CN=GroupName,OU=YourOU,DC=domain,DC=com"

The reason dsquery works better than the GUI is that it talks directly to the directory service without caching. If it returns a DN (distinguished name), the group exists—delete it with dsrm. Then recreate it with dsadd group "CN=GroupName,OU=YourOU,DC=domain,DC=com".

If neither command finds the group but you still get the error, the problem is likely a stale reference in the Windows security database—that's the next fix.

The 15+ Minute Fix: Scrub the Registry and Check for Replication

This is where you go deep. The error 0xC0000065 can also fire when there's a conflict in the Security Accounts Manager (SAM) registry hive on the local machine, or when Active Directory replication hasn't fully converged. I've seen this happen on domain controllers that were promoted from an older server (like Windows Server 2012 R2) without proper cleanup.

Step 1: Backup the registry before touching anything

reg export HKLM\SAM C:\SAM_backup.reg
reg export HKLM\SECURITY C:\SECURITY_backup.reg

Note: By default, you can't read the SAM hive even as admin. But you can export it for backup. If you get "Access denied," take ownership of the key first using regedit with psexec -s -i regedit (Sysinternals tool required).

Step 2: Check for duplicate SID references in the SAM

Open Registry Editor with SYSTEM privileges (use psexec -s -i regedit from an admin command prompt). Navigate to:

HKLM\SAM\SAM\Domains\Account\Aliases

Under Aliases, you'll see numbered subkeys (like 000003E9). Each one is a local group. Look for the group name in the Name value inside each subkey. If you find two entries with the same name but different SIDs—that's the conflict. Delete the duplicated entry (the one with the later modification date).

I don't recommend deleting entries unless you're absolutely sure. A safer approach: rename the duplicate to something like GroupName_OLD and reboot. Then try creating the group again.

Step 3: For domain controllers—check replication

If you're on a multi-DC environment, the group might exist on another domain controller that hasn't replicated to yours. Run:

repadmin /syncall /AdeP
repadmin /showobjmeta * "CN=GroupName,OU=YourOU,DC=domain,DC=com"

The first command forces a sync across all DCs. The second shows metadata for the object—if it returns results, the group exists on another DC and replication brought it to yours. Wait for sync, then use the group or delete it from the authoritative DC.

If replication is failing (you see errors like 8453 or 8614), you've got a bigger issue—check DNS and time sync first.

Step 4: Last resort—delete the SID from the SAM (Windows 10/11 only)

If you're absolutely stuck and the group doesn't exist anywhere but the error persists, you can nuke the orphaned SID. Use psexec -s -i regedit and navigate to:

HKLM\SAM\SAM\Domains\Account\Users\Names\GroupName

Delete the key. Then go to HKLM\SAM\SAM\Domains\Account\Users and find the corresponding SID subkey (the one with the same last byte in the value). Delete that too. Reboot immediately.

This is the nuclear option—I've only needed it twice in ten years. It works, but make sure you have a System Restore point first.

Why This Error Happens in Practice

In my experience, 0xC0000065 shows up most often during domain migrations or when someone tries to create a group with a name that matches a deleted group's SID. The deleted group's SID lingers in the SAM until it's overwritten, and Windows won't let you reuse the name until the SID is cleaned up. The registry fix in Step 4 is what you want there.

Another common cause: third-party software that creates groups during installation (looking at you, SQL Server and older McAfee products). They leave behind stale entries even after uninstall. Run the command-line checks first—they'll usually surface the ghost group.

If none of these fix it, you're dealing with a corrupted SAM database. That requires booting from Windows Recovery Environment and running chkdsk /f or—worst case—repair-installing Windows. But stop here first. Nine times out of ten, one of these steps resolves it.

Was this solution helpful?