Well, most probably it is the underlying dd --list that needs that (in the - stupid - Windows 10), the batch part in itself is "plain enough" AFAICR.
Try a simple
with the three possible credentials
2) Run as Admin
Thanks for your reply
I have made ddlist_only.cmd file for testing and the results are:
1) Run in User Command window - dd.exe is running, but is giving only partly output - In the "NT Block Device Objects" section the output for all Harddisk Devices is missing
2) Run as Admin - no output at all
3) Run in Admin Command Window - dd.exe is running with correct output
So you are right. The problem occurs indeed due to the underlying dd --list not running properly in Windows 10 for case 1) and 2)
@cdob - Thanks for your reply
Run as set the current work directory to %SystemRoot%\system32. dd.exe is not found.
Change the direcoty to dd: cd /d %~dp0
Both your solutions to solve the problem are working here OK for Windows 10 x64 1909
Attached is ddlistbatch_2.zip where the working directory has been changed according to your first solution.
Now Run as Admin can be used as well as Running ddlist.cmd and ddlistw.cmd in Admin Command Window.
Thanks to both of you to help solving the problem