TestimoX

API Reference

Command

New-ADXGroup

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.DirectoryMutationResult

Creates a new Active Directory group account.

Examples

Generated fallback example

Generated fallback example from command syntax.


New-ADXGroup -SamAccountName 'Name' -OrganizationalUnit 'Value'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ADXGroup -SamAccountName <string> -OrganizationalUnit <string> [-Attribute <Hashtable>] [-CommonName <string>] [-Description <string>] [-DisplayName <string>] [-Mail <string>] [-ManagedBy <string>] [-Notes <string>] [-Scope <DomainLocal|Global|Universal>] [-SecurityEnabled <bool>] [<CommonParameters>]
#

Parameters

SamAccountName string requiredposition: 0pipeline: false
Gets or sets the group sAMAccountName.
OrganizationalUnit string requiredposition: 1pipeline: false
Gets or sets the destination organizational unit distinguished name.
Attribute Hashtable optionalposition: namedpipeline: false
Gets or sets optional custom attributes to apply after creation.
CommonName string optionalposition: namedpipeline: false
Gets or sets optional common name (CN). Defaults to SamAccountName.
Description string optionalposition: namedpipeline: false
Gets or sets optional description.
DisplayName string optionalposition: namedpipeline: false
Gets or sets optional display name.
Mail string optionalposition: namedpipeline: false
Gets or sets optional mail address.
ManagedBy string optionalposition: namedpipeline: false
Gets or sets optional managedBy distinguished name.
Notes string optionalposition: namedpipeline: false
Gets or sets optional notes/info value.
Scope GroupScope optionalposition: namedpipeline: falsevalues: 3
Gets or sets the group scope. Possible values: DomainLocal, Global, Universal
Possible values: DomainLocal, Global, Universal
SecurityEnabled bool optionalposition: namedpipeline: false
Gets or sets whether the group is security-enabled.

Outputs

ADPlayground.DirectoryMutationResult