Windwow Active Direcory 对象中常见的属性参考



在windows系统界面上显示的名称

LDAP Name (写脚本时需要参考的变量名称)

First Name

givenName

Middle Name / Initials

initials

Last Name

sn

Logon Name

userPrincipalName

Logon Name (Pre Windows 2000)

sAMAccountName

Display Name

displayName

Full  Name

name/cn

Description

description

Office

physicalDeliveryOfficeName

Telephone Number

telephoneNumber

Email

mail

Web Page

wWWHomePage

Password

password

Street

streetAddress

PO Box

postOfficeBox

City

l

State/Province

st

Zip/Postal Code

postalCode

Country 

co

Country 2 Digit Code - eg. US

c

Country code -eg. for US country code is 840

countryCode

Group

memberOf

Account Expires (use same date format as server)

accountExpires

User Account Control 

userAccountControl

User Photo 

thumbnailPhoto / exchangePhoto (Supports high resolution photo) / jpegPhoto / photo / thumbnailLogo

Profile Path

profilePath

Login Script

scriptPath

Home Folder

homeDirectory

Home Drive

homeDrive

Log on to

userWorkstations

Home

homePhone

Pager

pager

Mobile

mobile

Fax

facsimileTelephoneNumber

IP Phone

ipPhone

Notes

info

Title

title

Department

department

Company

company

Manager

manager

Mail Alias

mailNickName

Simple Display Name

displayNamePrintable

Hide from Exchange address lists

msExchHideFromAddressLists

Sending Message Size (KB)

submissionContLength

Receiving Message Size (KB)

delivContLength

Accept messages from Authenticated Users only

msExchRequireAuthToSendTo

Reject Messages From

unauthOrig

Accept Messages From

authOrig

Send on Behalf

publicDelegates

Forward To

altRecipient

Deliver and Redirect

deliverAndRedirect

Reciepient Limits

msExchRecipLimit

Use mailbox store defaults

mDBuseDefaults

Issue Warning at (KB)

mDBStorageQuota

Prohibit Send at (KB)

mDBOverQuotaLimit

Prohibit Send and receive at (KB)

mDBOverHardQuotaLimit

Do not permanaently delete messages until the store has been backed up

deletedItemFlags

keep deleted items for (days)

garbageCollPeriod

Outlook Mobile Access 

msExchOmaAdminWirelessEnable

Outlook Web Access 

protocolSettings

Allow Terminal Server Logon

tsAllowLogon

Terminal Services Profile Path

tsProfilePath

Terminal Services Home Directory 

tsHomeDir

Terminal Services Home Drive

tsHomeDirDrive

Start the following program at logon

tsInheritInitialProgram

Starting Program file name

tsIntialProgram

Start in

tsWorkingDir

Connect client drive at logon

tsDeviceClientDrives

Connect client printer at logon

tsDeviceClientPrinters

Default to main client printer

tsDeviceClientDefaultPrinter

End disconnected session

tsTimeOutSettingsDisConnections

Active Session limit

tsTimeOutSettingsConnections

Idle session limit

tsTimeOutSettingsIdle

When session limit reached or connection broken

tsBrokenTimeOutSettings

Allow reconnection

tsReConnectSettings

Remote Control

tsShadowSettings

Protect accidental deletion

preventDeletion

Manager can update members

managerCanUpdateMembers

Primary Group ID

primaryGroupID

Administrative Group

msExchAdminGroup

Exchange Server Name

msExchHomeServerName

Managed By

managedBy

Target Address

targetAddress

Proxy-Addresses

proxyAddresses

Automatically Update Email-address based on Recipient Policy

msExchPoliciesExcluded

Office 365 Group Membership

GroupMemberObjectId

Enable Litigation Hold for Mailbox

LitigationHoldEnabled

Litigation Hold Duration for Exchange Mailbox

LitigationHoldDuration

Enable in-place Archive for User Mailbox

InPlaceArchive

Archive Name for User's Mailbox Archive

ArchiveName

User Principal Name of Office 365 user account

O365userPrincipalName