# New-AcctIdentityPool
Creates a new identity pool.
Syntax
New-AcctIdentityPool -IdentityPoolName <String> [-NamingScheme <String>] [-NamingSchemeType <ADIdentityNamingScheme>] [-OU <String>] [-Domain <String>] [-AllowUnicode] [-StartCount <Int32>] [-Scope <String[]>] [-LoggingId <Guid>] [-AdminAddress <String>] [<CommonParameters>]
Detailed Description
Provides the ability to create identity pools that can be used to store AD computer accounts.
The naming scheme, naming scheme type, and domain must be specified if the identity pool is to be used to create new accounts.
Each identity pool is tied to a single domain. All the identities in an identity pool belong to the same domain. If the domain is not specified by a parameter to this command the domain will be set when an account is imported into it.
Related Commands
- Remove-AcctIdentityPool
- Rename-AcctIdentityPool
- Set-AcctIdentityPool
- Test-AcctIdentityPoolNameAvailable
- New-AcctADAccount
Parameters
Input Type
Return Values
Citrix.ADIdentity.Sdk.IdentityPool
This object provides details of the identity pool and contains the following information:
IdentityPoolName
The name of the identity pool.
IdentityPoolUid
The unique identifier for the identity pool.
NamingScheme
The naming scheme for the identity pool.
NamingSchemeType
The naming scheme type for the identity pool. This can be one of the following:
Numeric - naming scheme uses numeric indexes
Alphabetic - naming scheme uses alphabetic indexes
StartCount
The next index to be used when creating an identity from the identity pool.
OU
The Active Directory distinguished name for the OU in which accounts created from this identity pool will be created.
Domain
The Active Directory domain that accounts in the pool belong to.
Lock
Indicates if the identity pool is locked.
The name of the identity pool.
IdentityPoolUid
The unique identifier for the identity pool.
NamingScheme
The naming scheme for the identity pool.
NamingSchemeType
The naming scheme type for the identity pool. This can be one of the following:
Numeric - naming scheme uses numeric indexes
Alphabetic - naming scheme uses alphabetic indexes
StartCount
The next index to be used when creating an identity from the identity pool.
OU
The Active Directory distinguished name for the OU in which accounts created from this identity pool will be created.
Domain
The Active Directory domain that accounts in the pool belong to.
Lock
Indicates if the identity pool is locked.
## Notes
In the case of failure, the following errors can result.
Error Codes
-----------
UnableToConvertDomainName
Unable to convert domain name to DNS format.
NamingSchemeNotEnoughCharacters
Naming scheme does not have enough characters specified.
NamingSchemeTooManyCharacters
Naming scheme has too many characters specified.
NamingSchemeIllegalCharacter
Naming scheme contains illegal characters.
NamingSchemeMayNotStartWithPeriod
Naming scheme starts with a period (.) character.
NamingSchemeMayNotBeAllNumbers
Naming scheme contains only numbers.
NamingSchemeMissingNumericSpecifications
Naming scheme does not contain any variable specification (i.e. no '#' characters are specified).
NamingSchemeHasMoreThanOneSetOfHashes
Naming scheme has more than one variable region (i.e. there are '#' characters separated by other characters).
IdentityPoolDuplicateObjectExists
An identity pool with the same name already exists.
IdentityPoolOUInvalid
Identity Pool OU invalid as it does not exist.
IdentityPoolOUOfWrongDomain
IdentityPool OU invalid as it refers to a different domain to the domain specified for the pool.
InvalidIdentityPoolParameterCombination
Caused by either of the following validation errors:
* If an OU is specified then a domain must also be specified.
* NamingScheme, NamingSchemeType and Domain must all be present if any of these are specified.
NamingSchemeIllegalComputerName
The naming scheme supplied is not valid.
PermissionDenied
The user does not have administrative rights to perform this operation.
ConfigurationLoggingError
The operation could not be performed because of a configuration logging error
DatabaseError
An error occurred in the service while attempting a database operation.
DatabaseNotConfigured
The operation could not be completed because the database for the service is not configured.
ServiceStatusInvalidDb
An error occurred in the service while attempting a database operation - communication with the database failed for
for various reasons.
CommunicationError
An error occurred while communicating with the service.
ExceptionThrown
An unexpected error occurred. To locate more details, see the Windows event logs on the controller being used or examine the XenDesktop logs.
Examples
EXAMPLE 1
c:\PS>New-AcctIdentityPool -IdentityPoolName MyPool -NamingScheme Acc#### -Domain MyDomain.com -NamingSchemeType Numeric IdentityPoolName : MyPool IdentityPoolUid : 22072d9e-6a8f-494b-a5bc-2ef18ca4b915 NamingScheme : Acc#### NamingSchemeType : Numeric StartCount : 1 OU : Domain : MyDomain.com Lock : False
Description
-----------
Create a new identity pool from which accounts can be created in the domain called "MyDomain.com" using a numeric scheme of the format Acc####. The first account that will be created from this identity pool definition is Acc0001.
New AD accounts can be imported into this pool too, but must be from the Domain "MyDomain.com".