When executing the following command:
takeown /F D:\ /A /R /D Y
I get the following error:
The parameter is incorrect.r): "D:\$Recycle.Bin\S-1-5-21-1597830813-2420638671-2875775154-1001\.
This occurs whether the command is executed through an elevated command prompt, or psexec started through an elevated command prompt. The command used to execute psexec in the elevated command prompt is:
psexec -i -s cmd.exe
Commands used are from the first answer and its comments on this question:
How would I use Takeown to take ownership of all folders on one drive?
chkdsk D: /r results:
5722519 MB total disk space.
4377584 MB in 9233276 files.
4193228 KB in 1272116 indexes.
0 KB in bad sectors.
11410631 KB in use by the system.
65536 KB occupied by the log file.
1361610408 KB available on disk.
4096 bytes in each allocation unit.
1464965119 total allocation units on disk.
340402602 allocation units available on disk.