< Back
New-ADSchemaClass
Post
NAME New-ADSchemaClass
SYNOPSIS
Create a new class in the Active Directory Schema
SYNTAX
New-ADSchemaClass [-Name] <Object> [-AdminDescription] <Object> [[-Category] <Object>] [[-AttributeID] <Object>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
New-ADSchemaClass will add a new class to the AD Schema. The majority of
the time, any new classes will likely be an Auxiliary Class. It is a best
practice to create an auxiliary class and add it as an auxliary class to
an existing class.
PARAMETERS
-Name <Object>
The name of the attribute you are creating. This will be the CN and the LDAP
Display Name, and Admin Display Name. Using a standard prefix is a good
practice to follow.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AdminDescription <Object>
This is the description of the class being created. Usually, a 3 or 4 word
description is sufficient.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Category <Object>
99% of the time, you will chose an Auxiliary class. Becuase of this, the
default value is automatically set to Auxililary. Please see
https://technet.microsoft.com/en-us/lib ... 61751.aspx for info
on other categories if you wish to overwrite.
Required? false
Position? 3
Default value Auxiliary
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AttributeID <Object>
Required? false
Position? 4
Default value (New-ADSchemaTestOID)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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 C:\\>$oid = New-ADSchemaTestOID
New-ADSchemaClass -Name asPerson -AdminDescription 'host custom user attributes' -Category Auxiliary -AttributeID
$oid
RELATED LINKS
SYNOPSIS
Create a new class in the Active Directory Schema
SYNTAX
New-ADSchemaClass [-Name] <Object> [-AdminDescription] <Object> [[-Category] <Object>] [[-AttributeID] <Object>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
New-ADSchemaClass will add a new class to the AD Schema. The majority of
the time, any new classes will likely be an Auxiliary Class. It is a best
practice to create an auxiliary class and add it as an auxliary class to
an existing class.
PARAMETERS
-Name <Object>
The name of the attribute you are creating. This will be the CN and the LDAP
Display Name, and Admin Display Name. Using a standard prefix is a good
practice to follow.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AdminDescription <Object>
This is the description of the class being created. Usually, a 3 or 4 word
description is sufficient.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Category <Object>
99% of the time, you will chose an Auxiliary class. Becuase of this, the
default value is automatically set to Auxililary. Please see
https://technet.microsoft.com/en-us/lib ... 61751.aspx for info
on other categories if you wish to overwrite.
Required? false
Position? 3
Default value Auxiliary
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AttributeID <Object>
Required? false
Position? 4
Default value (New-ADSchemaTestOID)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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 C:\\>$oid = New-ADSchemaTestOID
New-ADSchemaClass -Name asPerson -AdminDescription 'host custom user attributes' -Category Auxiliary -AttributeID
$oid
RELATED LINKS