Solved

diskpart output

Posted on 2013-11-22
7
645 Views
Last Modified: 2013-12-19
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
uniqueid disk
exit


diskid.txt get's created, but is empty.


Any help?  Thank you!
0
Comment
Question by:arunykand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
7 Comments
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 39669909
If you run an elevated command prompt, it will work:
Accessories>Command Prompt>right-click>Run As Administrator

Regards, Joe
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 39679045
Hi arunykand,
Have you tried running the command prompt as administrator yet? I'm confident that will solve the problem for you, as I was able to replicate your exact problem here, i.e., the file is empty when the command prompt is run normally, but the file has the correct output when the command prompt is run as administrator (known as an "elevated" command prompt). Regards, Joe
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 39729228
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 39729229
There is definitely enough information to confirm an answer. I am 100% confident that http:#a39669909 is the answer. The problem is 100% reproducible. The file is empty when the command prompt is run normally, but the file has the correct output when the command prompt is "Run as administrator" (also known as an "elevated" command prompt). I'm certain that anyone reviewing this thread will have the same results. And any EE member with the same problem would be well-served to find this solution. Regards, Joe
0
 

Author Closing Comment

by:arunykand
ID: 39729296
Yes, this did work....Sorry for the hold-up, fell through the cracks, but certainly appreciate the help!
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE
ID: 39729317
OK, great to hear! Thanks for letting us know that it works for you. Regards, Joe
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question