API Reference
Command
New-ADXComputer
Creates a new Active Directory computer account.
Examples
Generated fallback example from command syntax.
New-ADXComputer -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-ADXComputer -SamAccountName <string> -OrganizationalUnit <string> [-Attribute <Hashtable>] [-CommonName <string>] [-Description <string>] [-DnsHostName <string>] [-Enabled <bool>] [-Location <string>] [-ManagedBy <string>] [-Office <string>] [-OperatingSystem <string>] [-OperatingSystemServicePack <string>] [-OperatingSystemVersion <string>] [-ServicePrincipalName <string[]>] [<CommonParameters>]#Parameters
- SamAccountName string
- Gets or sets the computer sAMAccountName.
- OrganizationalUnit string
- Gets or sets the destination organizational unit distinguished name.
- Attribute Hashtable
- Gets or sets optional custom attributes to apply after creation.
- CommonName string
- Gets or sets optional common name (CN). Defaults to normalized SamAccountName.
- Description string
- Gets or sets optional description.
- DnsHostName string
- Gets or sets optional dNSHostName.
- Enabled bool
- Gets or sets optional enabled state.
- Location string
- Gets or sets optional location.
- ManagedBy string
- Gets or sets optional managedBy distinguished name.
- Office string
- Gets or sets optional office (physicalDeliveryOfficeName).
- OperatingSystem string
- Gets or sets optional operatingSystem.
- OperatingSystemServicePack string
- Gets or sets optional operatingSystemServicePack.
- OperatingSystemVersion string
- Gets or sets optional operatingSystemVersion.
- ServicePrincipalName string[]
- Gets or sets optional service principal names.
Outputs
ADPlayground.DirectoryMutationResult