Solved

Valid characters for a domain\username

Posted on 2007-11-28
8
8,396 Views
Last Modified: 2009-12-16
What are the valid characters for domain and user in Windows? Also what are the lengths? I believe username can't have the following but I'm not sure about the domain: \/"[]<>+=;,?*@

Thanks
0
Comment
Question by:gromul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Expert Comment

by:crawfordits
ID: 20371002
I believe the only valid characters for a domain name are 'A-Z', 'a-z','0-9', '.' and '-'.
0
 
LVL 7

Expert Comment

by:mcse2007
ID: 20371074
0
 
LVL 77

Accepted Solution

by:
Rob Williams earned 500 total points
ID: 20371187
As already stated by crawfordits........
Request for Comment (RFC) 1123 specifies the following acceptable characters for a DNS name: • The letters A to Z (uppercase)
• The letters a to z (lowercase)
• The numbers 0 to 9
• The hyphen or dash character (-)
If the DNS name contains a character that is not valid, such as an underscore (_), you must re-create the DNS namespace.
from: http://kbalertz.com/319757/Fatal-Setup-Error-Error-Message-Occurs-Install-Microsoft-Exchange-Server.aspx

Also, it is recommended you keep your names 15 characters or less if possible. Longer names work, but NetBIOS names are limited to 15 characters and this does come into play from time to time.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:gromul
ID: 20376638
Is it the same though for Windows? I'm not interested in DNS domains, but in domains in a network of Windows PCs.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20378660
To the best of my knowledge. Try it. As I recall you will get an error if you try to use an illegal character.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20378668
Microsoft confirmation the same RFC applies:
http://technet2.microsoft.com/windowsserver/en/library/5fe46cef-db12-4b78-94d2-2a0b62a282711033.mspx?mfr=true
See "Setting computer names".
0
 

Author Comment

by:gromul
ID: 20379206
RobWill, thanks for an exhaustive reply. I tried it on my own and these characters can't be used in a computer name:

`~!@#$^&*()=+[]{}\|;:'",.<>/?
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 20379842
Thanks gromul.
Cheers !
--Rob
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
An article on effective troubleshooting
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question