Well, after a few more tests, it seems to be coming from my Windows 10 (version 14393.105).
I tested it on Windows 8.11 and it works perfectly, no duplicate drives.
I'll have to test it with a clean Windows 10 installation (without any updates) to see if the problem is with the system itself or caused by an update.
my script is executed via Samba with the following configuration in smb.conf: `root preexec = bash /opt/scripts/samba/test.sh %U` which generates the user.bat file, and then `logon script = %U.bat`. Users are created with the `--script-path="user.bat"` The user.bat script is located in the logon folder...
I'm seeking your help with a problem I'm having with a logon script. I've configured my Samba server so that users log in using a script named after them (%u.bat), which is generated dynamically by another script to mount network drives based on...