get_schema_guid
Use the get_schema_guid
command to look up a specified class or attribute in Active Directory. If the specified object is found, the command returns the globally unique identifier (GUID) of the class or attribute.
This command is useful for setting a security descriptor (SD) at a class or attribute level.
Zone type
Not applicable
Syntax
get_schema_guid schema_name
Abbreviation
gsg
Options
This command takes no options.
Arguments
This command takes the following argument:
Argument | Type | Description |
schema_name |
string |
Required. Specifies the name of a class or attribute. |
Return value
This command returns the globally unique identifier (GUID) of the provided schema object (class or attribute).
Examples
get_schema_guid MS-DS-Az-Role
This example returns the globally unique identifier of MS-DS-Az-Role
:
8213eac9-9d55-44dc-925c-e9a52b927644
Related commands
None.