There are a few reasons not to allow spaces in usernames...
- They need to be tested with 3rd party software. ...
- Browsers wrap whitespace. ...
- It makes usernames more difficult to parse. ...
- Leading and trailing whitespaces need to be managed carefully. ...
- Sequential whitespace can be difficult to discern.
- Why do usernames not allow spaces?
- Can we have space in username?
- Why are spaces not allowed in passwords?
- How do I remove spaces from users?
Why do usernames not allow spaces?
Solution 2
The main reason for not allowing spaces is that it makes it more difficult to parse the name out of a longer field if spaces are included.
Can we have space in username?
By all means, you can allow users to have spaces in their alias / nickname field, but allowing them to login with it might not be the best approach.
Why are spaces not allowed in passwords?
Passwords containing at least one space character are in general more secure than passwords without spaces. This is because passwords with spaces tend to be more complex, more difficult for attackers to crack, or guess.
How do I remove spaces from users?
First change your username to remove the white space. Then create a new Administrator account, log out an log in using that. Rename the user folder and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList<User SID>\ registry key and rename ProfileImagePath to the new user folder path.