CASE:
- connect from Windows 10 (10.0.19041.0) to Windows Server 2016 Datacenter (10.0.14393.0) remote desktop
- run 2 powershell scripts, which create/delete files in a loop, see attachment), in parallels:
.\delete-file-test.ps1 -Path \\tsclient\c\test -NamePrefix a_ -Iterations 100
.\delete-file-test.ps1 -Path \\tsclient\c\test -NamePrefix b_ -Iterations 100
EXPECTED:
- scripts create and delete files on a redirected drive
ACTUAL:
- after a number of iterations one of the script processes finds an issue in file deletion:
Unexpected list of items (b_file2) in folder '\\tsclient\c\test\b_folder'
NOTE: it seems there is a race condition in RDP Drive redirection protocol implementation. For a failed script iteration ProcMon cannot see an appropriate SetInformationFile for the file deletion which was assumed as successful in the script. 95148-delete-file-test-ps1.txt