Post by PaulPost by Ralph FoxPost by TOkay, under Windows 7, DISKPART could be run as a user.
Not here.
Under Windows 7, when I try to run DISKPART I get a UAC prompt.
screen-shot: <http://img4.imagetitan.com/img.php?image=25_tkmtsq_diskpart-on-windows-7-pops-a-uac-prompt.png>
Post by TUnder W11, it need to be under an Administrator.
Same as under Windows 7 for me.
Me too. I did not realize my cmd shells all
opened as administrators in W7
Any way around needing to be administrator? A
different command to get me the same thing?
If an elevated subsystem collects the data and
presents it to an unelevated user, that is one
way to do it (wmic).
If a probing method is "active" and the software
used reaches down to the physical layer (reads
raw sectors), well of course that needs administrator.
msinfo32.exe gives some info, but this may not
be entirely satisfactory.
Paul
Oh it is getting ugly. I can run my program
as Administrator, but look what happens
when I throw and `exit` or a `die` as
Cowardly Exiting. Bummer Dude ...
(Lock:D: &code, *%_)
in method setup at C:\Program Files\Rakudo\share\perl6\core\sources\A37F26876B58371B70EDD889AD69F064C90AC2C6 line 296
in method setup at C:\Program Files\Rakudo\share\perl6\core\sources\A37F26876B58371B70EDD889AD69F064C90AC2C6 line 366
in sub raku-nativecall at C:\Program Files\Rakudo\share\perl6\core\sources\A153F63283BF744FD66BF7212910E5F389384F6E (NativeCall::Dispatcher) line 46
in sub MessageBox at Windows.RaidCheck.pl6 line 129
in sub GetRaidStatus at Windows.RaidCheck.pl6 line 115
in block <unit> at Windows.RaidCheck.pl6 line 142
Mumble, Mumble ....
What I notice here, is Diskpart is the only utility that
has a decent Status field.
This is collected from Windows 11 VM, with a Dynamic Disk RAID 1 mirror.
I removed the second container from the RAID pair, and this is the output.
(The reason I used Dynamic Disk, is there is no fake RAID hardware in VBOX.)
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 Mirror 31 GB Failed <=== My 32GB RAID1 E: , one drive unplugged
Volume 1 D CD-ROM 0 B No Media
Volume 2 C NTFS Partition 63 GB Healthy Boot \
Volume 3 FAT32 Partition 100 MB Healthy System \___ GPT boot drive Win11
Volume 4 NTFS Partition 673 MB Healthy Hidden /
Whereas some of the WMIC output was, um, "not useful".
And I gotta say, that Rufus preparation tool is great.
Converted a W11 ISO to a fake USB stick in Virtualbox.
I didn't boot from the fake USB stick, but just
ran Setup.exe off it and did an Upgrade Install.
And "no tpm?", not a whisper. It all just installed.
The Upgrade Advisor thought it was OK. So there was
no need to go near VirtualBox 7 for this, the 6.1.40
did the job.
Paul