Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7022305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:33:52+00:00 2026-05-27T23:33:52+00:00

currently if I try to add local user jim,bob to a Windows 7 system,

  • 0

currently if I try to add local user “jim,bob” to a Windows 7 system, as expected, the following error dialog is shown displaying all the illegal chars for a user name. Is there a quick .net method to call which returns the same chars? E.g.

Path.GetInvalidPathChars();

returns all the invalid path chars. Is there a similar method out there for user names?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:33:52+00:00Added an answer on May 27, 2026 at 11:33 pm

    Path.GetInvalidFileNameChars() – ?

    User Name Policies from http://technet.microsoft.com/en-us/library/cc722458.aspx

    A key policy you’ll need to set is the naming scheme for accounts. In Windows NT, user names must follow these rules:

    Local user names must be unique on a workstation.

    Global user names must be unique throughout a domain.

    User names must be no more than 20 characters in length.

    User names cannot contain certain characters. Invalid characters include:

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

    User names can contain all other special characters, including spaces, periods, dashes, and underscores. But it’s generally not a good idea to use spaces in account names. On some non-Windows NT systems, such as UNIX, spaces aren’t valid in user names and the user may have difficulty accessing these systems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a program that will take a existing local windows user,
i want to add ?orderBy=countryasc to my current url. I try with Request.Url but
I currently try to use Reachability in iOS 5.1 on iPad. There is a
I am currently try to retrieve a latitude and longitude value from a location.
I'm currently (I try to) designing a RESTful API for a social network. But
I currently have MVS2008 and I want to try the 2010 version hoping that
I'm currently working with PHPUnit to try and develop tests alongside what I'm writing,
I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically
I am currently using code similar to this: try { // IE ONLY var
I am currently looking at the unload event of a window to try to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.