Quick answer for pros
Share names can't have spaces, slashes, or any special characters except underscores. Use only letters, numbers, and underscores. Keep it under 80 characters. That's it.
Why this happens
You're trying to create a shared folder on Windows, and you get the error 0x000004BF. The message says the share name format is invalid. This happens when you use characters that Windows doesn't allow in share names. It's different from folder names on your hard drive - those can have spaces and special characters. But share names follow old rules from the 80s. They only accept A-Z, a-z, 0-9, and underscores. No spaces, no slashes, no hyphens, no dots. Also, the name can't be longer than 80 characters total. I've seen this error plenty of times when a user tries to share a folder named "My Documents" or "Project Files - 2024". The space and the hyphen both cause the error.
Step-by-step fix
Step 1: Check your share name for bad characters
Right-click the folder you want to share and click Properties. Go to the Sharing tab. Look at the Share Name field. If you see any of these characters, they're the problem: spaces, /, \, ?, *, :, |, <, >, ". Also, the name can't be just numbers. For example, a share named "2024" won't work. It needs at least one letter.
Step 2: Rename the share using only allowed characters
Click the Share button in the Sharing tab. In the window that opens, click the dropdown where it says "Choose people to share with". Actually wait - first you need to click the sharing link, then you'll see the share name at the top of the window. It's often the same as the folder name. Click the small arrow or link that says "Share" next to the name. A text box appears. Delete the old name and type a new one using only letters, numbers, and underscores. For example, change "Project Files - 2024" to "ProjectFiles_2024". Click Apply. After clicking Apply you should see the new name show up without the error.
Step 3: Re-apply sharing permissions
Now you need to set who can access the share. In the same window, type "Everyone" or a specific user in the box at the bottom. Click Add. After you add the user, click the Permission Level dropdown next to their name. Choose Read/Write if you want them to be able to change files. Click Share. You should see a green checkmark saying "Your folder is shared." Click Done.
If the main fix doesn't work
Alternative: Use the command line
Sometimes the GUI won't let you save the share even with the right name. Open Command Prompt as Administrator. Press Windows key, type cmd, right-click Command Prompt, choose Run as administrator. Then type this command, but replace YOURFOLDER with the actual folder path and SHARENAME with your clean name:
net share SHARENAME=C:\Path\To\YOURFOLDER /GRANT:Everyone,FULLFor example if your folder is at C:\Users\Public\ProjectFiles_2024, type:
net share ProjectFiles_2024=C:\Users\Public\ProjectFiles_2024 /GRANT:Everyone,FULLPress Enter. After running the command you should see "The command completed successfully." If it still fails, double-check that the folder path exists and the share name has no bad characters.
Alternative: Delete the old broken share first
If you already tried sharing with a bad name and it partially created the share, you need to remove it. Open Computer Management (right-click Start, choose Computer Management). Go to System Tools > Shared Folders > Shares. Find the share with the bad name. Right-click it and choose Stop Sharing. Then try the steps above again.
Prevention tip
When you name a folder that you might share later, skip spaces and special characters from the start. Use underscores or CamelCase. For example, name the folder "SalesQ1Report" instead of "Sales Q1 Report". This saves you from renaming later. Also, if you're on a domain network, check your company's naming rules. Some domains block certain share names like "C$" or "print$" because those are reserved.
One more thing: share names are case-insensitive on Windows. So "MyShare" and "myshare" are the same share. Don't try to create two shares that differ only by case - Windows will give you a different error about duplicate names.