< Back
Add-ADSchemaAttributeToClass
Post
NAME Add-ADSchemaAttributeToClass
SYNOPSIS
Adds an attribute to a class.
SYNTAX
Add-ADSchemaAttributeToClass [[-Attribute] <Object>] [[-Class] <Object>] [<CommonParameters>]
DESCRIPTION
Add a New Custom Class to an existing Structural Class in Active Directory.
For example if you want to add attributes to the User Class:
1. Create a new Auxiliary Class.
2. Add Attributes to that new Auxiliary Class.
3. Assign the new class as an Auxiliary Class to the User Class.
PARAMETERS
-Attribute <Object>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Class <Object>
The Structural Class you are adding an Auxiliary Class to.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS>Add-ADSchemaAuxiliaryClassToClass -AuxiliaryClass asTest -Class User
Set the 'asTest' class as an Auxiliary Class of the User Class.
RELATED LINKS
SYNOPSIS
Adds an attribute to a class.
SYNTAX
Add-ADSchemaAttributeToClass [[-Attribute] <Object>] [[-Class] <Object>] [<CommonParameters>]
DESCRIPTION
Add a New Custom Class to an existing Structural Class in Active Directory.
For example if you want to add attributes to the User Class:
1. Create a new Auxiliary Class.
2. Add Attributes to that new Auxiliary Class.
3. Assign the new class as an Auxiliary Class to the User Class.
PARAMETERS
-Attribute <Object>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Class <Object>
The Structural Class you are adding an Auxiliary Class to.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS>Add-ADSchemaAuxiliaryClassToClass -AuxiliaryClass asTest -Class User
Set the 'asTest' class as an Auxiliary Class of the User Class.
RELATED LINKS