0X000004B9

ERROR_INVALID_GROUPNAME (0x4B9): Group Name Format Fix

That 0x4B9 error means Windows choked on the group name you typed. Usually it's a typo, a bad domain prefix, or an old net.exe command with the wrong syntax.

You ran a net localgroup or net group command, or you tried to add a group in Computer Management, and Windows threw this at you:

System error 1209 has occurred.
The format of the specified group name is invalid.

Or you saw the raw code ERROR_INVALID_GROUPNAME (0x000004B9) in an app log or a script output. I know this one is infuriating because it sounds so vague. "Invalid format" — invalid how? The name looks fine to you.

Here's the thing: Windows is picky about group names in a very specific way, and 9 times out of 10 the problem is something dumb like a trailing space or a wrong domain prefix. Let's walk through it from quickest to most involved. Stop as soon as it works.

30-Second Fix: Check the Actual Name (Typos and Spaces)

The single most common cause of 0x4B9 is a name that looks right but isn't. Windows group names can't contain these characters, and if one sneaks in you get this error:

\ / [ ] : ; | = , + * ? < > @ " "

They also can't contain a backslash inside the name (more on that below) and can't consist only of periods or spaces.

What tripped me up the first time: a trailing space. Someone copied a group name out of an Excel cell and pasted it into a command prompt. Looked identical. Had a space at the end. Windows rejected it instantly.

Try this. In an admin Command Prompt:

net localgroup

That lists every local group. Copy the exact name from that output instead of retyping it. Then run your command again. If it works, walk away — you're done.

Also check the obvious: is the group actually a group and not a user or a computer object? Naming a user in a net group command will give you this same error because the type doesn't match the command.

5-Minute Fix: Domain vs. Local Name Format

If the name is clean and it still fails, you're probably mixing up local and domain context.

For local groups

Use just the group name, no domain prefix:

net localgroup Administrators

Adding a domain prefix like MYDOMAIN\Administrators to a local group command will fail with 0x4B9, because Windows reads that backslash as a format error in this context.

For domain groups

You need one of two formats, and they're not interchangeable:

net group "Group Name" /domain
net group MYDOMAIN\"Group Name"

Notice the quotes. If your group name has a space, you must wrap it in double quotes. Unquoted Domain Admins becomes two arguments and Windows chokes on the second one. That alone accounts for a huge chunk of 0x4B9 reports.

The domain prefix form uses a single backslash, not a double backslash. I've seen scripts fail for weeks because someone escaped it as DOMAIN\\Group from a bad copy-paste out of a JSON config. One backslash. Always.

Quick decision table

CommandCorrect format
net localgroupJust the name, no domain
net group (domain)DOMAIN\Group or "Group Name" /domain
PowerShell Get-ADGroup-Identity "Group Name" (quoted if spaced)
Add-LocalGroupMember-Group "Group Name" (quoted)

Run the right form for the right context and the error clears.

15-Minute Fix: Scripts, Scheduled Tasks, and AD Propagation

Still failing? Now we're in the weeds, but these are the real culprits in corporate environments.

1. Hidden characters from copy-paste

Group names pulled from Word, Outlook, or a web page can carry a non-breaking space (U+00A0) or a zero-width space. Both look identical to a normal space in every editor you have open. They will absolutely trigger 0x4B9.

Check with PowerShell:

$name = "YourGroupName"
$name.ToCharArray() | ForEach-Object { [int][char]$_ }

Every character should print a normal ASCII code. If you see 160 (non-breaking space) or 8203 (zero-width space), that's your problem. Retype the name by hand.

2. Scheduled tasks and service accounts using the wrong context

A task running as NT AUTHORITY\SYSTEM can't resolve a domain group name the same way an interactive user can, and it'll surface as 0x4B9 instead of a permissions error. If your task targets a domain group, make sure the task's account has network access to a domain controller. Running it as SYSTEM on a machine with no line of sight to a DC is a classic trigger.

3. Replication lag in Active Directory

If the group was just created, a different DC may not have it yet. You add it, it errors with 0x4B9 because the local DC can't find it, and then ten minutes later the same command works fine. Nothing you did — the topology just caught up. Verify with:

nltest /dsgetdc:yourdomain.com
repadmin /showrepl

If you see recent failures or a DC that hasn't replicated in a while, that's your answer. Force it with repadmin /syncall /AdeP if you have the rights.

4. Legacy LDAP scripts with hardcoded formats

Old VBScript and batch tools from the Windows Server 2003 era sometimes hardcode CN=GroupName,CN=Users and pass it where a plain name is expected. Windows 10, 11, and Server 2016+ reject the DN in that context. Open the script, find the group variable, and strip it down to the bare name or the DOMAIN\\Name form depending on what the tool wants.

When it's not a name problem at all

Rare, but worth knowing: 0x4B9 can mask a broken Netlogon service or a corrupted SAM database on a workstation. If a freshly typed, perfectly valid local group name fails on every command, check these:

sc query netlogon
sc query lanmanworkstation

Both should read RUNNING. If Netlogon is stopped, start it. If it won't stay started, you've got a deeper issue — likely a domain trust or a missing secure channel — and 0x4B9 is just the symptom showing up first.

Ninety-nine percent of the time though, it's the name. Quote it, drop the domain prefix if it's local, and paste it in from net localgroup or Get-ADGroup output rather than retyping. That kills this error faster than anything else.

Related Errors in Windows Errors
0XC00D00D1 Fix NS_E_UDP_DISABLED (0XC00D00D1) in Windows Media Player 0XC0262587 Fix 0XC0262587: Monitor DDC/CI Capabilities String Error 0X000000D8 Fix 0X000000D8: EXE_MACHINE_TYPE_MISMATCH on Windows 10/11 0X00002128 Fixing ERROR_DS_SRC_GUID_MISMATCH (0X00002128)

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.