Do I assume correctly that these admin cmd lines are on the machine which I wish to access?
I had a HD crash about 2 wks ago and lost access to my D drive (W10) from my laptop (W11).
Been searching everywhere for how to regain it. Tried several work arounds, but nothing works.
If this works for me, man, are you a lifesaver.
You have to get the drive mounted first. You can't run commands on an unmounted drive.
https://www.diskpart.com/windows-10/d-drive-missing-windows-10-3889.html
Boot from that USB stick, and you'll get an option to try without installing the Linux OS.
You should be able to use the File Explorer while you're in the trial Linux to look at your Win 10 drive [the drive might already be mounted, as TChad talks about in post #11].
I've done that in the past to transfer files from a belly-up Win OS to safety.
For the computer you started with, you are the administrator.
If you have a new HD, partition it for a new drive called D:
The 2 line code I presented is when sometimes ownership of a folder or file, for some unknown reason is no longer yours. I had a folder owned by “TRUSTED INSTALLER” instead of me. And it kept giving me Access denied errors when I tried to copy or move the files inside the folder.
Tchad is entirely correct. Use Diskpart utility to partition the hard drive first. Then if you run into “Acess Denied” errors, is where my 2 line code will help fix that..
If you need data recovery and not simply recovery of the drive, you may need specialized software for that, such as EaseUS Data Recovery. Or, you may need to hire someone. I have had good luck with EaseUS Data Recovery, but it is a bit tricky to use.