Issue
During provisioning, a Workspot desktop may fail to join Microsoft Active Directory and transition to a Failed state. The Workspot Agent or Windows domain-join log may report Error Code 1219.
Domain join failed with [Error Code: 1219]
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
Cause
Windows Error 1219 indicates that the desktop has an active or retained connection to the same server using credentials that differ from the credentials used for the domain join.
In a Workspot provisioning workflow, the conflict may be introduced by the template or by a pre-domain-join customization that connects to a domain controller, file server, SYSVOL, NETLOGON, IPC$, or another SMB resource before the Workspot Agent performs the domain join.
Important: Do not treat incorrect credentials, DNS failure, time synchronization, duplicate computer accounts, or insufficient Active Directory permissions as direct causes of Error 1219. Those conditions normally produce different domain-join errors and should be investigated only if the logs show a different failure. |
Resolution
1. Determine whether the failure is isolated or repeatable
Confirm whether only one desktop failed or multiple newly provisioned desktops from the same template are failing with Error 1219.
If only one desktop failed, delete the failed desktop in Workspot Control and allow the pool to recreate it. For pools configured with Auto-create on Delete, replacement occurs automatically.
Monitor the replacement desktop and confirm that it reaches the Ready state.
Decision point: If the replacement desktop provisions successfully, monitor the pool and close the issue. If the replacement also fails with Error 1219, continue with template-level investigation. |
2. Review domain-join and Workspot Agent logs
On a failed or test desktop, review the following locations:
C:\Windows\Debug\NetSetup.log
C:\ProgramData\WorkspotAgent\Log
Identify the server or domain controller referenced immediately before the 1219 failure.
Check whether the same server was accessed earlier with a different account or explicit credentials.
Record the provisioning timestamp, desktop name, template version, pool name, and domain controller contacted.
3. Review pre-domain-join customization
Review the template for Workspot customization scripts, particularly:
C:\ProgramData\WorkspotAgent\Config\WsSetupComplete.ps1
Review the script and any called scripts for connections such as:
\\DomainController\SYSVOL
\\DomainController\NETLOGON
\\FileServer\Share
net use
New-PSDrive
New-SmbMapping
Remove unnecessary SMB connections that occur before domain join.
Avoid connecting to the same server with credentials different from the Workspot domain-join account.
If a connection is required, use a targeted disconnect after the operation and before domain join.
Safety warning: Do not add net use * /delete /y as a blanket workaround. It disconnects all SMB connections visible in that security context, can affect other provisioning steps, and may not clear sessions created under a different account or Local System. Correct the script or connection that causes the conflict. |
4. Validate the Workspot domain-join configuration
On an editable copy of the Workspot template, open the Workspot Config Editor with administrator privileges:
C:\Program Files\WorkspotAgent\WorkspotConfigEditor
Validate the following settings:
Active Directory DNS domain name
Target organizational unit (OU)
Domain-join service account and password
Required Active Directory permissions for creating or reusing the computer account
Test Secure Credentials completes successfully
5. Publish and test the corrected template
Make the required script or configuration correction in an editable template version.
Shut down and publish the corrected template according to the Workspot template workflow.
Test the corrected template in a preview or test pool before broad deployment.
Delete the failed non-persistent desktops so Workspot can recreate them from the corrected template.
Confirm that the recreated desktops reach the Ready state and successfully join the domain.
Verification
The issue is resolved when:
The replacement non-persistent desktop reaches the Ready state in Workspot Control.
The computer object is created or updated in the expected Active Directory OU.
NetSetup.log shows that the domain join completed successfully.
The desktop can establish a valid secure channel with the domain.
nltest /sc_verify:<domain-fqdn>
Escalation data
If the issue continues after template correction and desktop recreation, collect:
C:\Windows\Debug\NetSetup.log
Relevant Workspot Agent logs from C:\ProgramData\WorkspotAgent\Log
Sanitized WsSetupComplete.ps1 and any scripts it calls
Workspot pool name, desktop name, template name/version, and failure timestamp
Domain FQDN, target OU, and domain controller contacted
Whether the failure affects one desktop or every desktop created from the template
Results of Test Secure Credentials
Security: Remove passwords, access tokens, private keys, and other secrets before attaching logs or scripts to a support case. |
Quick troubleshooting flow
Observation | Action | Expected result |
One desktop fails with 1219 | Delete the failed desktop and allow Workspot to recreate it. | Replacement reaches Ready; monitor and close. |
Replacement also fails | Review NetSetup.log, Workspot Agent logs, and pre-domain-join scripts. | Identify the conflicting server/session or template configuration. |
Template/script issue confirmed | Correct, publish, and test the template, then recreate affected desktops. | New desktops join the domain and reach Ready. |
Failure continues | Collect the escalation package and engage Workspot Support. | Support can correlate provisioning, Agent, and domain-join activity. |