Valid windows computer name characters




















I find it amusing that you so strongly advise against using hyphens in a computer name, yet Microsoft automatically names Windows systems using a hyphen!

What were they thinking?! Your email address will not be published. Notify me of follow-up comments by email. Notify me of new posts by email. Post navigation Previous Post. Next Post. Feature Comparison of Office Desktop Apps vs. Office on the Web Apps. On December 27, An illuminating article, thanks for publishing it!

Leave a Comment Cancel reply Your email address will not be published. This div height required for enabling the sticky sidebar. We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. Manage consent.

Close Privacy Overview This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website.

These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience. Necessary Necessary. I'm using this for sanitizing uploaded file names. The file name is not meant to be linked to anything on disk, it's for when the file is being downloaded hence there are no path checks. Basically it strips all non-printable and reserved characters for Windows and other OSs.

You can easily extend the pattern to support other locales and functionalities. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Allowed characters in filename Ask Question. Asked 10 years, 11 months ago. Active 4 months ago. Viewed k times. Yves M. NET provides that info for Windows.

Possible duplicate of What characters are forbidden in Windows and Linux directory names? Not sure how this could be considered a "recommendation for books, tools, software libraries, and more".

It's clearly asking what the allowed characters are for a variety of filesystems, something that's quite handy if you're looking to use a common base. I see this as no different than asking what any specific limitation is. I suspect the recommendation reason for closure is more suited for actual requests for recommendations, such as "What's a good book for learning Python programming? Show 3 more comments. Active Oldest Votes.

Switching to a local user account and back again also helps. You can also try creating a new admin account if this doesn't work. The below method will work whether you have a local account or not. Step 1: Open Settings again and go to Accounts. Click on Sign in with a local account instead link. Step 2: You will be asked to enter the current admin account password first. Then you will view a list of all available local accounts.

Choose one if you have or you will be presented with an option to create one first. Just follow on-screen instructions from here. Most Windows users never find out but every Windows installation comes with a built-in but hidden admin account. There is one that is created and is visible to you when you install Windows. Not that one.

There is another but often it is disabled by default. Enable this admin account and then try renaming your PC. Make sure you disable or delete this account after you are done. It can be used by hackers to take over your computer otherwise. Now that you know how to give your computer a name, you won't see the dreadful 'computer name is invalid' error again. Renaming devices makes it easier to identify and connect to them over the network or with Bluetooth devices.

You might have to wait for a day if you use Microsoft Account to log into your PC and let the changes take effect as solution 5. Also, it could be the reason why you might be facing trouble.

Let us know if you have figured another easy trick to rename your computer in the comments section below. Next up: Would you like to install Windows apps without setting Microsoft as your default Windows account?



0コメント

  • 1000 / 1000