Configuration driven Active Directory management.
Registers a generic object as the desired state for active directory.
Register-DMObject [-Path] <String> [[-Name] <String>] [-ObjectClass] <String> [[-Attributes] <Object>]
[[-AttributesToResolve] <String[]>] [<CommonParameters>]
Registers a generic object as the desired state for active directory. This allows defining custom objects not implemented as a commonly supported type.
Get-Content .\objects.json | ConvertFrom-Json | Write-Output | Register-DMObject
Imports all objects defined in objects.json.
The Path to the OU in which to place the object. Subject to string insertion.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Name of the object to define. Subject to string insertion.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The class of the object to define.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Attributes to include in the object. If you specify a hashtable, keys are mapped to attributes. If you specify another arbitrary object type, properties are mapped to attributes.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The names of all attributes in configuration, for which you want to perform string insertion, before comparing with the actual object in AD.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.