During provisioning, the creation of an Active Directory account will fail with the exception "A device attached to the system is not functioning."
This error can occur when invalid data is passed to the AD attribute sAMAccountName.
If you encounter this error, check to see if the provisioning process fills in this attribute.
Ensure the value of the attribute meets the following requirements: