Dela via


Display the Attributes of a Specific Object

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2

The /showattr operation displays the attributes and contents of an object.

Syntax

repadmin /showattr <DC_LIST> <OBJ_LIST> <OBJ_LIST_OPTIONS> [/atts: <<att1>>,<<att2>>,...] [/allvalues] [/long] [/dumpallblob]

Parameters

Definition

<DC_LIST>

Specifies the host name of a domain controller or a list of domain controllers separated by a space that the object will be replicated to. For details about DC_LIST, see repadmin /listhelp.

<OBJ_LIST>

This parameter takes a distinguished name or a special keyword that expands into a distinguished name. The keywords are as follows:

  • Ncobj:config: Distinguished name of the Configuration partition of the domain controller

  • Ncobj:schema: Distinguished name of the Schema partition of the domain controller

  • Ncobj:domain: Distinguished name of the Domain partition of the domain controller

  • Dsaobj: NTDS settings object of the directory server

<OBJ_LIST_OPTIONS>

The OBJ_LIST_OPTION parameter is required to perform a generic Lightweight Directory Access Protocol (LDAP) search from the command line. The parameter requires a BaseDN, with the ability to use a search modifier option. The valid search modifier options are as follows:

  • /filter:<ldap_filter>

  • /base

  • /subtree

  • /onelevel

[/atts:<att1>,<att2>,...

Returns only the attributes that are specified. Separate each listed attribute with a comma.

/allvalues

For an attribute, the tool only displays 20 values unless this flag is specified, in which case it shows all values.

/long

Displays one value per line.

/dumpallblob

Dumps the BLOB in a default byte-by-byte format if there is not a friendly formatted interpretation available for it.

Note

A BLOB in this context means an attribute that is not a simple type, like a string or an integer. A BLOB is a complex structured type that is stored as binary bytes. To make sense of the BLOB, a program must interpret it and format it. A friendly BLOB is a BLOB that the program knows about and can format in an understandable way. The program has a list of BLOBs that it understands.

Example: Display select attributes

Please note how we specify the naming context as ncobj:domain:

Repadmin /showattr