API Reference
Command
New-ADXProvisionedObject
Creates a new user or computer account.
Examples
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 UserParameters
- OrganizationalUnit string
- Organizational unit distinguished name (DN) where the object will be created.
- SamAccountName string
- SamAccountName for the new object.
- User SwitchParameter
- Create a user account.
Outputs
System.String
New-ADXProvisionedObject -OrganizationalUnit <string> -SamAccountName <string> [-Computer] [<CommonParameters>]#Parameter set:
By ComputerParameters
- OrganizationalUnit string
- Organizational unit distinguished name (DN) where the object will be created.
- SamAccountName string
- SamAccountName for the new object.
- Computer SwitchParameter
- Create a computer account.
Outputs
System.String