大网数据广告活动
域与目录服务

SAM-Account-Type attribute

· 52CE 我爱测

This attribute contains information about every account type object.

This attribute contains information about every account type object. You can enumerate a list of account types or you can use the Display Information API to create a list. Because computers, normal user accounts, and trust accounts can also be enumerated as user objects, the values for these accounts must be a contiguous range.

The possible values for this attribute are the following:

  • SAM_DOMAIN_OBJECT 0x0
  • SAM_GROUP_OBJECT 0x10000000
  • SAM_NON_SECURITY_GROUP_OBJECT 0x10000001
  • SAM_ALIAS_OBJECT 0x20000000
  • SAM_NON_SECURITY_ALIAS_OBJECT 0x20000001
  • SAM_USER_OBJECT 0x30000000
  • SAM_NORMAL_USER_ACCOUNT 0x30000000
  • SAM_MACHINE_ACCOUNT 0x30000001
  • SAM_TRUST_ACCOUNT 0x30000002
  • SAM_APP_BASIC_GROUP 0x40000000
  • SAM_APP_QUERY_GROUP 0x40000001
  • SAM_ACCOUNT_TYPE_MAX 0x7fffffff
Entry Value
CN SAM-Account-Type
Ldap-Display-Name sAMAccountType
Size -
Update Privilege This value is set by the system.
Update Frequency This is set by the operating system when the object is created.
Attribute-Id 1.2.840.113556.1.4.302
System-Id-Guid 6e7b626c-64f2-11d0-afd2-00c04fd930c9
Syntax Enumeration

Implementations

Windows 2000 Server

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Windows Server 2003

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Windows Server 2003 R2

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Windows Server 2008

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Windows Server 2008 R2

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Windows Server 2012

Entry Value
Link-Id -
MAPI-Id -
System-Only False
Is-Single-Valued True
Is Indexed True
In Global Catalog True
NT-Security-Descriptor O:BAG:BAD:S:
Range-Lower -
Range-Upper -
Search-Flags 0x00000001
System-Flags 0x00000012
Classes used in Security-Principal

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。