I'm trying to get the 'uniqueid' of my disk via diskpart and get that output to a text file, and i'm running into an issue. I'm able to use 'diskpart' and view the uniqueid, but when I try to pipe the output to a text file, the file get's created but it's empty.
I'm running this on Win-7 x64;
Here the command I run:
diskpart /s c:\test\disk.txt > diskid.txt
The file disk.txt contains these commands to run in diskpart:
select disk 0
diskid.txt get's created, but is empty.
Any help? Thank you!