Return All Available Computer Attributes

email me

This is how you can list all the Attributes used by the Computer Class in Active Directory. I have the output going to attributes.txt.

Recommended usage: cscript script.vbs > attributes.txt

 

VBScript

Set objSchema = GetObject(“LDAP://schema/computer”)

Wscript.Echo “Mandatory attributes”

For Each strAttribute in objSchema.MandatoryProperties
Wscript.Echo strAttribute
Next

Wscript.Echo

Wscript.Echo “Optional attributes”

For Each strAttribute in objSchema.OptionalProperties
Wscript.Echo strAttribute
Next

 

The Returned Attributes

Mandatory attributes
cn
instanceType
nTSecurityDescriptor
objectCategory
objectClass
objectSid
sAMAccountName

Optional attributes
accountExpires
accountNameHistory
aCSPolicyName
adminCount
adminDescription
adminDisplayName
allowedAttributes
allowedAttributesEffective
allowedChildClasses
allowedChildClassesEffective
altRecipient
altRecipientBL
altSecurityIdentities
assistant
attributeCertificate
attributeCertificateAttribute
audio
authOrig
authOrigBL
autoReply
autoReplyMessage
badPasswordTime
badPwdCount
bridgeheadServerListBL
businessCategory
businessRoles
c
canonicalName
carLicense
catalogs
co
codePage
comment
company
controlAccessRights
countryCode
createTimeStamp
dBCSPwd
defaultClassStore
defaultLocalPolicyObject
deletedItemFlags
delivContLength
deliverAndRedirect
deliveryMechanism
delivExtContTypes
department
departmentNumber
description
desktopProfile
destinationIndicator
directReports
displayName
displayNamePrintable
distinguishedName
division
dLMemDefault
dLMemRejectPerms
dLMemRejectPermsBL
dLMemSubmitPerms
dLMemSubmitPermsBL
dnQualifier
dNSHostName
dSASignature
dSCorePropagationData
dynamicLDAPServer
employeeID
employeeNumber
employeeType
enabledProtocols
expirationTime
extensionAttribute1
extensionAttribute10
extensionAttribute11
extensionAttribute12
extensionAttribute13
extensionAttribute14
extensionAttribute15
extensionAttribute2
extensionAttribute3
extensionAttribute4
extensionAttribute5
extensionAttribute6
extensionAttribute7
extensionAttribute8
extensionAttribute9
extensionData
extensionName
facsimileTelephoneNumber
fimCompliance
fimPrefNameDisplay
fimWpoAcctCode
fimWpoAcctCodeAdditional
fimWpoAcctCodeName
fimWpoAddlDeptCd
fimwpoBusinessTitle
fimwpoBusinessUnit
fimwpoBusinessUnitDescription
fimWpoCompanyCode
fimWpoContractEndDate
fimWpoEmployeeStatus
fimWpoEmplRCD
fimWpoEmplRCDAdditional
fimWpoEmplType
fimWpoHireDate
fimWpoHomeCity
fimWpoJobCode
fimWpoJobCodeAdditional
fimWpoJobFunction
fimWpoJobLevel
fimWpoKHECECA
fimWpoLocationAdditional
fimWpoLocationDescrAdditional
fimWpoLocationNbr
fimWpoManager
fimWpoManagerLevel
fimWpoMgrEmployeeID
fimWpoMSSUser
fimWpoNamePrefix
fimWpoNameSuffix
fimWpoOriginalHireDate
fimWpoPerOrg
fimWpoPersonalMail
fimWpoPositionName
fimWpoPositionNo2
fimWpoPositionNumber
fimWpoPrefFirstName
fimWpoPrefLastName
fimWpoPrefMIddleName
fimWpoRegTemp
fimWpoRehireDate
fimWpoSState
fimWpoTerminationDate
fimWpoWebClockUser
flags
folderPathname
formData
forwardingAddress
fromEntry
frsComputerReferenceBL
fRSMemberReferenceBL
fSMORoleOwner
garbageCollPeriod
gecos
generationQualifier
gidNumber
givenName
groupMembershipSAM
groupPriority
groupsToIgnore
heuristics
homeDirectory
homeDrive
homeMDB
homeMTA
homePhone
homePostalAddress
houseIdentifier
importedFrom
info
initials
internationalISDNNumber
internetEncoding
ipHostNumber
ipPhone
isCriticalSystemObject
isDeleted
isPrivilegeHolder
isRecycled
jpegPhoto
kMServer
l
labeledURI
language
languageCode
lastKnownParent
lastLogoff
lastLogon
lastLogonTimestamp
legacyExchangeDN
lmPwdHistory
localeID
localPolicyFlags
location
lockoutTime
loginShell
logonCount
logonHours
logonWorkstation
logRolloverInterval
machineRole
mail
mailNickname
managedBy
managedObjects
manager
mAPIRecipient
masteredBy
maxStorage
mDBOverHardQuotaLimit
mDBOverQuotaLimit
mDBStorageQuota
mDBUseDefaults
memberOf
mhsORAddress
middleName
mobile
modifyTimeStamp
monitoredConfigurations
monitoredServices
monitoringAvailabilityStyle
monitoringAvailabilityWindow
monitoringCachedViaMail
monitoringCachedViaRPC
monitoringMailUpdateInterval
monitoringMailUpdateUnits
monitoringRPCUpdateInterval
monitoringRPCUpdateUnits
mS-DS-ConsistencyChildCount
mS-DS-ConsistencyGuid
mS-DS-CreatorSID
msCOM-PartitionSetLink
msCOM-UserLink
msCOM-UserPartitionSetLink
msDFSR-ComputerReferenceBL
msDFSR-MemberReferenceBL
msDRM-IdentityCertificate
msDS-AdditionalDnsHostName
msDS-AdditionalSamAccountName
msDS-AllowedToActOnBehalfOfOtherIdentity
msDS-AllowedToDelegateTo
msDS-Approx-Immed-Subordinates
msDS-AuthenticatedAtDC
msDS-AuthenticatedToAccountlist
msDS-Cached-Membership
msDS-Cached-Membership-Time-Stamp
msDS-ClaimSharesPossibleValuesWithBL
msDS-cloudExtensionAttribute1
msDS-cloudExtensionAttribute10
msDS-cloudExtensionAttribute11
msDS-cloudExtensionAttribute12
msDS-cloudExtensionAttribute13
msDS-cloudExtensionAttribute14
msDS-cloudExtensionAttribute15
msDS-cloudExtensionAttribute16
msDS-cloudExtensionAttribute17
msDS-cloudExtensionAttribute18
msDS-cloudExtensionAttribute19
msDS-cloudExtensionAttribute2
msDS-cloudExtensionAttribute20
msDS-cloudExtensionAttribute3
msDS-cloudExtensionAttribute4
msDS-cloudExtensionAttribute5
msDS-cloudExtensionAttribute6
msDS-cloudExtensionAttribute7
msDS-cloudExtensionAttribute8
msDS-cloudExtensionAttribute9
msDS-EnabledFeatureBL
msDS-ExecuteScriptPassword
msDS-FailedInteractiveLogonCount
msDS-FailedInteractiveLogonCountAtLastSuccessfulLogon
msDS-GenerationId
msDS-GeoCoordinatesAltitude
msDS-GeoCoordinatesLatitude
msDS-GeoCoordinatesLongitude
msDS-HABSeniorityIndex
msDS-HostServiceAccount
msDS-HostServiceAccountBL
msDS-IsDomainFor
msDS-IsFullReplicaFor
msDS-isGC
msDS-IsPartialReplicaFor
msDS-IsPrimaryComputerFor
msDS-isRODC
msDS-IsUserCachableAtRodc
msDS-KeyVersionNumber
msDS-KrbTgtLink
msDS-KrbTgtLinkBl
msDS-LastFailedInteractiveLogonTime
msDS-LastKnownRDN
msDS-LastSuccessfulInteractiveLogonTime
msDS-LocalEffectiveDeletionTime
msDS-LocalEffectiveRecycleTime
msDs-masteredBy
msDS-MembersForAzRoleBL
msDS-MembersOfResourcePropertyListBL
msDS-NC-RO-Replica-Locations-BL
msDS-NCReplCursors
msDS-NCReplInboundNeighbors
msDS-NCReplOutboundNeighbors
msDS-NcType
msDS-NeverRevealGroup
msDS-NonMembersBL
msDS-ObjectReferenceBL
msDS-OIDToGroupLinkBl
msDS-OperationsForAzRoleBL
msDS-OperationsForAzTaskBL
msDS-PhoneticCompanyName
msDS-PhoneticDepartment
msDS-PhoneticDisplayName
msDS-PhoneticFirstName
msDS-PhoneticLastName
msDS-PrimaryComputer
msDS-PrincipalName
msDS-PromotionSettings
msDS-PSOApplied
msDS-ReplAttributeMetaData
msDS-ReplValueMetaData
msDS-ResultantPSO
msDS-RevealedDSAs
msDS-RevealedList
msDS-RevealedListBL
msDS-RevealedUsers
msDS-RevealOnDemandGroup
msDS-SecondaryKrbTgtNumber
msDS-Site-Affinity
msDS-SiteName
msDS-SourceObjectDN
msDS-SupportedEncryptionTypes
msDS-TasksForAzRoleBL
msDS-TasksForAzTaskBL
msDS-TDOEgressBL
msDS-TDOIngressBL
msDS-User-Account-Control-Computed
msDS-UserPasswordExpiryTimeComputed
msDS-ValueTypeReferenceBL
msExchADCGlobalNames
msExchAggregationSubscriptionCredential
msExchALObjectVersion
msExchAlternateMailboxes
msExchApprovalApplicationLink
msExchArbitrationMailbox
msExchArchiveDatabaseBL
msExchArchiveDatabaseLink
msExchArchiveGUID
msExchArchiveName
msExchArchiveQuota
msExchArchiveWarnQuota
msExchAssistantName
msExchAvailabilityOrgWideAccountBL
msExchAvailabilityPerUserAccountBL
msExchBlockedSendersHash
msExchBypassModerationBL
msExchBypassModerationFromDLMembersBL
msExchBypassModerationFromDLMembersLink
msExchBypassModerationLink
msExchCalendarRepairDisabled
msExchCoManagedObjectsBL
msExchConferenceMailboxBL
msExchConfigurationUnitBL
msExchContentConversionSettings
msExchControllingZone
msExchCU
msExchCustomProxyAddresses
msExchDelegateListBL
msExchDelegateListLink
msExchDeviceAccessControlRuleBL
msExchDirsyncID
msExchDumpsterQuota
msExchDumpsterWarningQuota
msExchEdgeSyncCookies
msExchEdgeSyncRetryCount
msExchEdgeSyncSourceGuid
msExchELCExpirySuspensionEnd
msExchELCExpirySuspensionStart
msExchELCMailboxFlags
msExchEnableModeration
msExchExchangeServerLink
msExchExpansionServerName
msExchExternalOOFOptions
msExchExternalSyncState
msExchFBURL
msExchForeignGroupSID
msExchHABShowInDepartments
msExchHideFromAddressLists
msExchHomeServerName
msExchHouseIdentifier
msExchIMACL
msExchIMAddress
msExchIMAP4Settings
msExchIMAPOWAURLPrefixOverride
msExchIMMetaPhysicalURL
msExchImmutableId
msExchIMPhysicalURL
msExchIMVirtualServer
msExchInconsistentState
msExchIntendedMailboxPlanBL
msExchIntendedMailboxPlanLink
msExchLabeledURI
msExchLicenseToken
msExchMailboxFolderSet
msExchMailboxGuid
msExchMailboxMoveBatchName
msExchMailboxMoveFlags
msExchMailboxMoveRemoteHostName
msExchMailboxMoveSourceMDBBL
msExchMailboxMoveSourceMDBLink
msExchMailboxMoveStatus
msExchMailboxMoveTargetMDBBL
msExchMailboxMoveTargetMDBLink
msExchMailboxOABVirtualDirectoriesLink
msExchMailboxPlanType
msExchMailboxSecurityDescriptor
msExchMailboxTemplateLink
msExchMailboxUrl
msExchManagementSettings
msExchMasterAccountSid
msExchMaxBlockedSenders
msExchMaxSafeSenders
msExchMDBRulesQuota
msExchMessageHygieneFlags
msExchMessageHygieneSCLDeleteThreshold
msExchMessageHygieneSCLJunkThreshold
msExchMessageHygieneSCLQuarantineThreshold
msExchMessageHygieneSCLRejectThreshold
msExchMobileAllowedDeviceIDs
msExchMobileBlockedDeviceIDs
msExchMobileDebugLogging
msExchMobileMailboxFlags
msExchMobileMailboxPolicyLink
msExchMobileRemoteDocumentsAllowedServersBL
msExchMobileRemoteDocumentsBlockedServersBL
msExchMobileRemoteDocumentsInternalDomainSuffixListBL
msExchMobileSettings
msExchModeratedByLink
msExchModeratedObjectsBL
msExchModerationFlags
msExchObjectCountQuota
msExchObjectID
msExchOmaAdminExtendedSettings
msExchOmaAdminWirelessEnable
msExchOrganizationsAddressBookRootsBL
msExchOrganizationsGlobalAddressListsBL
msExchOrganizationsTemplateRootsBL
msExchOriginatingForest
msExchOURoot
msExchOWAAllowedFileTypesBL
msExchOWAAllowedMimeTypesBL
msExchOWABlockedFileTypesBL
msExchOWABlockedMIMETypesBL
msExchOWAForceSaveFileTypesBL
msExchOWAForceSaveMIMETypesBL
msExchOWAPolicy
msExchOWARemoteDocumentsAllowedServersBL
msExchOWARemoteDocumentsBlockedServersBL
msExchOWARemoteDocumentsInternalDomainSuffixListBL
msExchOWASettings
msExchOWATranscodingFileTypesBL
msExchOWATranscodingMimeTypesBL
msExchParentPlanBL
msExchParentPlanLink
msExchPfRootUrl
msExchPoliciesExcluded
msExchPoliciesIncluded
msExchPolicyEnabled
msExchPolicyList
msExchPolicyOptionList
msExchPOP3Settings
msExchPreviousAccountSid
msExchPreviousHomeMDB
msExchProvisioningFlags
msExchProxyCustomProxy
msExchQueryBaseDN
msExchRBACPolicyBL
msExchRBACPolicyLink
msExchRecipientDisplayType
msExchRecipientTypeDetails
msExchRecipientValidatorCookies
msExchRecipLimit
msExchRequireAuthToSendTo
msExchResourceCapacity
msExchResourceDisplay
msExchResourceGUID
msExchResourceMetaData
msExchResourceProperties
msExchResourceSearchProperties
msExchRetentionComment
msExchRetentionURL
msExchRMSComputerAccountsBL
msExchRMSComputerAccountsLink
msExchSafeRecipientsHash
msExchSafeSendersHash
msExchSendAsAddresses
msExchSenderHintTranslations
msExchServerAssociationBL
msExchServerAssociationLink
msExchServerSiteBL
msExchSetupStatus
msExchSharingPartnerIdentities
msExchSharingPolicyLink
msExchSignupAddresses
msExchSMTPReceiveDefaultAcceptedDomainBL
msExchSupervisionDLBL
msExchSupervisionDLLink
msExchSupervisionOneOffBL
msExchSupervisionOneOffLink
msExchSupervisionUserBL
msExchSupervisionUserLink
msExchSyncAccountsPolicyDN
msExchTextMessagingState
msExchThrottlingPolicyDN
msExchTransportInboundSettings
msExchTransportOutboundSettings
msExchTransportRecipientSettingsFlags
msExchTUIPassword
msExchTUISpeed
msExchTUIVolume
msExchUMAddresses
msExchUMAudioCodec
msExchUMAudioCodec2
msExchUMCallingLineIDs
msExchUMDtmfMap
msExchUMEnabledFlags
msExchUMEnabledFlags2
msExchUMFaxId
msExchUMListInDirectorySearch
msExchUMMailboxOVALanguage
msExchUMMaxGreetingDuration
msExchUMOperatorNumber
msExchUMPhoneProvider
msExchUMPinChecksum
msExchUMRecipientDialPlanLink
msExchUMServerWritableFlags
msExchUMSpokenName
msExchUMTemplateLink
msExchUnmergedAttsPt
msExchUseOAB
msExchUserAccountControl
msExchUserBL
msExchUserCulture
msExchVersion
msExchVoiceMailboxID
msExchWindowsLiveID
msIIS-FTPDir
msIIS-FTPRoot
msImaging-HashAlgorithm
msImaging-ThumbprintHash
mSMQDigests
mSMQDigestsMig
mSMQSignCertificates
mSMQSignCertificatesMig
msNPAllowDialin
msNPCallingStationID
msNPSavedCallingStationID
msPKI-CredentialRoamingTokens
msPKIAccountCredentials
msPKIDPAPIMasterKeys
msPKIRoamingTimeStamp
msRADIUS-FramedInterfaceId
msRADIUS-FramedIpv6Prefix
msRADIUS-FramedIpv6Route
msRADIUS-SavedFramedInterfaceId
msRADIUS-SavedFramedIpv6Prefix
msRADIUS-SavedFramedIpv6Route
msRADIUSCallbackNumber
msRADIUSFramedIPAddress
msRADIUSFramedRoute
msRADIUSServiceType
msRASSavedCallbackNumber
msRASSavedFramedIPAddress
msRASSavedFramedRoute
msRTCSIP-ArchivingEnabled
msRTCSIP-FederationEnabled
msRTCSIP-InternetAccessEnabled
msRTCSIP-Line
msRTCSIP-LineServer
msRTCSIP-OptionFlags
msRTCSIP-OriginatorSid
msRTCSIP-PrimaryHomeServer
msRTCSIP-PrimaryUserAddress
msRTCSIP-TargetHomeServer
msRTCSIP-UserEnabled
msRTCSIP-UserExtension
msRTCSIP-UserPolicy
msSFU30Aliases
msSFU30Name
msSFU30NisDomain
msSFU30PosixMemberOf
msTPM-OwnerInformation
msTPM-TpmInformationForComputer
msTSAllowLogon
msTSBrokenConnectionAction
msTSConnectClientDrives
msTSConnectPrinterDrives
msTSDefaultToMainPrinter
msTSEndpointData
msTSEndpointPlugin
msTSEndpointType
msTSExpireDate
msTSExpireDate2
msTSExpireDate3
msTSExpireDate4
msTSHomeDirectory
msTSHomeDrive
msTSInitialProgram
msTSLicenseVersion
msTSLicenseVersion2
msTSLicenseVersion3
msTSLicenseVersion4
msTSLSProperty01
msTSLSProperty02
msTSManagingLS
msTSManagingLS2
msTSManagingLS3
msTSManagingLS4
msTSMaxConnectionTime
msTSMaxDisconnectionTime
msTSMaxIdleTime
msTSPrimaryDesktop
msTSPrimaryDesktopBL
msTSProfilePath
msTSProperty01
msTSProperty02
msTSReconnectionAction
msTSRemoteControl
msTSSecondaryDesktopBL
msTSSecondaryDesktops
msTSWorkDirectory
name
netbootDUID
netbootGUID
netbootInitialization
netbootMachineFilePath
netbootMirrorDataFile
netbootSCPBL
netbootSIFFile
networkAddress
nisMapName
nonSecurityMemberBL
ntPwdHistory
o
objectGUID
objectVersion
operatingSystem
operatingSystemHotfix
operatingSystemServicePack
operatingSystemVersion
operatorCount
otherFacsimileTelephoneNumber
otherHomePhone
otherIpPhone
otherLoginWorkstations
otherMailbox
otherMobile
otherPager
otherTelephone
otherWellKnownObjects
ou
ownerBL
pager
partialAttributeDeletionList
partialAttributeSet
personalPager
personalTitle
photo
physicalDeliveryOfficeName
physicalLocationObject
policyReplicationFlags
pOPCharacterSet
pOPContentFormat
possibleInferiors
postalAddress
postalCode
postOfficeBox
preferredDeliveryMethod
preferredLanguage
preferredOU
primaryGroupID
primaryInternationalISDNNumber
primaryTelexNumber
profilePath
promoExpiration
protocolSettings
proxiedObjectName
proxyAddresses
publicDelegates
publicDelegatesBL
pwdLastSet
queryPolicyBL
registeredAddress
replicatedObjectVersion
replicationSensitivity
replicationSignature
replPropertyMetaData
replUpToDateVector
repsFrom
repsTo
revision
rid
rIDSetReferences
roomNumber
sAMAccountType
scriptPath
sDRightsEffective
secretary
securityIdentifier
securityProtocol
seeAlso
serialNumber
serverReferenceBL
servicePrincipalName
shadowExpire
shadowFlag
shadowInactive
shadowLastChange
shadowMax
shadowMin
shadowWarning
showInAddressBook
showInAdvancedViewOnly
sIDHistory
siteGUID
siteObjectBL
sn
st
street
streetAddress
structuralObjectClass
submissionContLength
subRefs
subSchemaSubEntry
supplementalCredentials
supportedAlgorithms
systemFlags
targetAddress
telephoneAssistant
telephoneNumber
teletexTerminalIdentifier
telexNumber
terminalServer
textEncodedORAddress
thumbnailLogo
thumbnailPhoto
title
tokenGroups
tokenGroupsGlobalAndUniversal
tokenGroupsNoGCAcceptable
trackingLogPathName
type
uid
uidNumber
unauthOrig
unauthOrigBL
unicodePwd
unixHomeDirectory
unixUserPassword
unmergedAtts
url
userAccountControl
userCert
userCertificate
userParameters
userPassword
userPKCS12
userPrincipalName
userSharedFolder
userSharedFolderOther
userSMIMECertificate
userWorkstations
uSNChanged
uSNCreated
uSNDSALastObjRemoved
USNIntersite
uSNLastObjRem
uSNSource
versionNumber
volumeCount
wbemPath
wellKnownObjects
whenChanged
whenCreated
wWWHomePage
x121Address
x500uniqueIdentifier