New-R1DirectoryObjectClass

SYNOPSIS

Adds an object class to the directory schema.

SYNTAX

New-R1DirectoryObjectClass [-objectClass] <String> [[-superClass] <String>] [[-isAuxiliary] <Boolean>]
 [[-requiredAttrs] <Object[]>] [[-optionalAttrs] <Object[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Adds a new object class to the LDAP schema.

EXAMPLES

Example 1

New-R1DirectoryObjectClass -objectClass 'myPerson' -superClass 'person'

Adds the object class myPerson, inheriting from person.

PARAMETERS

-objectClass

The name of the object class.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-superClass

The object class this one inherits from.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-isAuxiliary

Whether the object class is auxiliary rather than structural.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-requiredAttrs

The attributes an entry of this object class must carry.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-optionalAttrs

The attributes an entry of this object class may carry.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Void

NOTES

Get-R1DirectoryObjectClass

Set-R1DirectoryObjectClass