@Tom-Elliott
Conclusion:
- It’s unclear why the malfunctioning PC had multiple network cards.
- Domain Join does not work in this version.
(Note: This applies only if the PCs are not present in the domain—that is, if they have been deleted or have never been joined to the domain. Another group of PCs, PC001CAD through PC006CAD, were known to the DC and have joined the domain.)
The experiments leading to this conclusion are as follows:
OK, PC017CAD has been deleted and recreated. I searched for any other “duplicate” PCs using the following SQL queries.
mysql -u root fog -e “SELECT hmHostID, h.hostName, hm.hmMAC FROM hosts h JOIN hostMAC hm ON hm.hmHostID = h.hostID ORDER BY h.hostName ASC;”
mysql -u root fog -e " SELECT hmMAC, COUNT() AS anzahl FROM hostMAC GROUP BY hmMAC HAVING COUNT() > 1; "
mysql -u root fog -e " SELECT h.hostID, h.hostName, hm.hmMAC FROM hosts h JOIN hostMAC hm ON hm.hmHostID = h.hostID WHERE h.hostID IN ( SELECT hmHostID FROM hostMAC GROUP BY hmHostID HAVING COUNT(*) > 1) ORDER BY h.hostName, hm.hmMAC; "
Trying again
Of course, I forgot to select “Reset Encryption Data” again!!! Couldn’t that be set automatically when cloning??? It’s annoying me a little. But it’s probably the same as with the single snap-in—there must be a reason behind it that I just don’t understand 
03.07.2026 20:49:54 Main Overriding exception handling
03.07.2026 20:49:55 Main Bootstrapping Zazzles
03.07.2026 20:49:55 Controller Initialize
03.07.2026 20:49:55 Controller Start
03.07.2026 20:49:55 Service Starting service
03.07.2026 20:50:02 Bus Became bus server
03.07.2026 20:50:02 Bus Emmiting message on channel: Status
03.07.2026 20:50:02 Service Invoking early JIT compilation on needed binaries
------------------------------------------------------------------------------
--------------------------------Authentication--------------------------------
------------------------------------------------------------------------------
03.07.2026 20:50:02 Client-Info Version: 0.13.0
03.07.2026 20:50:02 Client-Info OS: Windows
03.07.2026 20:50:02 Middleware::Authentication Waiting for authentication timeout to pass
03.07.2026 20:50:02 Middleware::Communication Download: http://192.168.0.196/fog/management/other/ssl/srvpublic.crt
03.07.2026 20:50:02 Middleware::Authentication Cert OK
03.07.2026 20:50:02 Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before
03.07.2026 20:50:02 Middleware::Authentication ERROR: Could not get security token
03.07.2026 20:50:02 Middleware::Authentication ERROR: Die Datei "C:\Program Files (x86)\FOG\token.dat" konnte nicht gefunden werden.
03.07.2026 20:50:02 Middleware::Communication POST URL: http://192.168.0.196/fog/management/index.php?sub=requestClientInfo&authorize&newService
03.07.2026 20:50:02 Middleware::Communication ERROR: Failed to POST data
03.07.2026 20:50:02 Middleware::Communication ERROR: Der Remoteserver hat einen Fehler zurückgegeben: (401) Nicht autorisiert.
03.07.2026 20:50:02 Middleware::Response Success
More ghost tasks again… ?

The workstations were not created on the DC.

even though required

------------------------------------------------------------------------------
--------------------------------HostnameChanger-------------------------------
------------------------------------------------------------------------------
03.07.2026 20:52:03 Client-Info Client Version: 0.13.0
03.07.2026 20:52:03 Client-Info Client OS: Windows
03.07.2026 20:52:03 Client-Info Server Version: 1.6.0-beta.2571
03.07.2026 20:52:03 Middleware::Response Success
03.07.2026 20:52:03 HostnameChanger Checking Hostname
03.07.2026 20:52:03 HostnameChanger Renaming host to PC018CAD
03.07.2026 20:52:03 HostnameChanger Joining domain
03.07.2026 20:52:20 HostnameChanger The parameter is incorrect, code = 87
03.07.2026 20:52:20 Power Creating shutdown command in 60 seconds
03.07.2026 20:52:20 Bus Emmiting message on channel: Power
------------------------------------------------------------------------------
Check in the database whether the username and, most importantly, the password were entered correctly
mysql -u root fog -e " SELECT DISTINCT HostUseAD, hostADDomain, hostADUser, hostADPass FROM hosts; "

Joining the domain in PowerShell as a local administrator works
$domain = "MM.HTLWIEN10.AT"
$username = "MM.HTLWIEN10.AT\adminfog"
$password = "xxxxx" | ConvertTo-SecureString -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($username, $password)
Add-Computer -DomainName $domain -Credential $credential -Restart
Ghost Snapins are still there…
I’m going to delete them now

Created a PowerShell script for domain joining and released it as a snap-in.
samba-tool computer list | sort
Hooray—the PCs are back online!

Hooray—all 6 PCs are now set up in Veyon—so they’ve all successfully joined the domain, and the “Student” snap-in for the Veyon client was also successful…










The Fog Logs are quite different, after all













thanks