2019-7-29-NetBIOS-计算机名称命名限制

title author date CreateTime categories
NetBIOS 计算机名称命名限制
lindexi
2019-07-29 09:59:17 +0800
2018-12-27 17:7:28 +0800

本文告诉大家对于 NetBIOS 的命名的限制

长度限制

最小长度是 1 最长长度是 15 因为默认是 16 字符,但是微软使用最后一个字符作为后缀

可以使用的字符

可以使用英文和数字

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789

可以使用下面的符号

plus (+)
minus (-)
equals (=)
brackets ([ ])
comma (,)
tilde (~)
exclamation point (!)
at sign (@)
number sign (#)
dollar sign ($)
percent (%)
caret (^)
ampersand (&)
apostrophe (‘)
parentheses (())
braces ({})
underscore (_)
period (.)

不可以使用 period (.) 作为第一个字符,因为 period (.) 是用来做分段

EGFCEFEECACACACACACACACACACACACA.NETBIOS.COM

不可以使用的字符

反斜杠	backslash ()
正斜杠	slash mark (/)
冒号		colon (:)
星号		asterisk (*)
问号		question mark (?)
引号		quotation mark (")
小于号	less than sign (<) 
大于号	greater than sign (>)
竖线		vertical bar (|)

Microsoft Windows NT 中允许使用包含句点的非 DNS 名称。 但是,句点不能用于 Microsoft Windows 2000 或 Windows 的更新版本

保留字符

依照 RFC 952 的保留名称

-GATEWAY
-GW
-TAC

RFC 952 - DoD Internet host table specification

Computer name conventions

Active Directory user naming conventions

MS-NBTE NetBIOS Name Syntax

Active Directory 中计算机、域、站点和 OU 的命名约定

http://www.ietf.org/rfc/rfc1001.txt

https://www.ietf.org/rfc/rfc1002.txt

NetBIOS协议_百度百科

关于文件的限制请看 C# 不能用于文件名的字符

原文地址:https://www.cnblogs.com/lindexi/p/12086049.html