TestimoX

API Reference

Command

New-ADXProvisionedObject

Namespace ADPlayground.PowerShell
Outputs
System.String

Creates a new user or computer account.

Examples

Authored help example

Example 1


New-ADXProvisionedObject -User -SamAccountName 'svcBackup' -OrganizationalUnit 'OU=Service Accounts,DC=contoso,DC=com'
        

Example 2


New-ADXProvisionedObject -Computer -SamAccountName 'SVR-APP-01$' -OrganizationalUnit 'OU=Servers,DC=contoso,DC=com'
        

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-ADXProvisionedObject -OrganizationalUnit <string> -SamAccountName <string> [-User] [<CommonParameters>]
#
Parameter set: By User

Parameters

OrganizationalUnit string requiredposition: namedpipeline: false
Organizational unit distinguished name (DN) where the object will be created.
SamAccountName string requiredposition: namedpipeline: false
SamAccountName for the new object.
User SwitchParameter optionalposition: namedpipeline: false
Create a user account.

Outputs

System.String

New-ADXProvisionedObject -OrganizationalUnit <string> -SamAccountName <string> [-Computer] [<CommonParameters>]
#
Parameter set: By Computer

Parameters

OrganizationalUnit string requiredposition: namedpipeline: false
Organizational unit distinguished name (DN) where the object will be created.
SamAccountName string requiredposition: namedpipeline: false
SamAccountName for the new object.
Computer SwitchParameter optionalposition: namedpipeline: false
Create a computer account.

Outputs

System.String