MCS Unable to add machines to catalog Failed to create a computer account,due to an unknown error

MCS Unable to add machines to catalog Failed to create a computer account,due to an unknown error

book

Article ID: CTX324113

calendar_today

Updated On:

Description

You may be unable to add machines to catalog, receiving error "Failed to create a computer account *******, due to an unknown error." after 9 machines are added

Error details:
etting error. Transaction ID: <******-****-****-****-************> Action Name: MC_AddMachineInitialzation An error occurred. Contact Citrix Technical Support, and provide the transaction ID above. Exception: tstdgwindows0010 : [tstdgwindows0010 , Failed to create a computer account tstdgwindows0010 , due to an unknown error. Error Details AccountFailure : tstdgwindows0010 ] tstdgwindows0011 : [tstdgwindows0011 , Failed to create a computer account tstdgwindows0011 , due to an unknown error. Error Details AccountFailure : tstdgwindows0011 ]

Resolution

Change the naming scheme from tstdgwindows00# to tstdgwindows### in MCS wizard at Step 4:

To add machines to a catalog:
  1. Select Machine Catalogs in the Studio navigation pane.
  2. Select a machine catalog and then select Add machines in the Actions pane.
  3. Select the number of virtual machines to add.
  4. If there are insufficient existing Active Directory accounts for the number of VMs you are adding, select the domain and location where the accounts are created. Specify an account naming scheme, using hash marks to indicate where sequential numbers or letters appear. Do not use a forward slash (/) in an OU name. A name cannot begin with a number. For example, a naming scheme of PC-Sales-## (with 0-9 selected) results in computer accounts named PC-Sales-01, PC-Sales-02, PC-Sales-03, and so on.

Problem Cause

The MCS naming scheme was set to  tstdgwindows00# ( 15 characters) which allows computer names to created from  tstdgwindows001  to  tstdgwindows009 and MCS provisioning was attempting to add machine account beyond 15 characters -  tstdgwindows001x or  tstdgwindows001x

You may see following event in CDF trace:
xxxxxxxxx,x,YYYY/MM/DD hh:mm:ss.XXXXX,TID,PID,X,ADIdentitySnapIn,,,,1,Information,"Creating account - name: tstdgwindows0011 SID:  failed with error ComputerNameIsTooLong",
xxxxxxxxx,x,YYYY/MM/DD hh:mm:s.*****,TID,PID,X,ADIdentitySnapIn,,,,1,Information,"Setting the start count to the next value: 10",