XPost: alt.comp.os.windows-11   
   From: T@invalid.invalid   
      
   On 11/12/22 03:42, Robert Roland wrote:   
   > On Fri, 11 Nov 2022 17:46:01 -0800, T wrote:   
   >   
   >> Is there a way to call diskpart that will elevate   
   >> it to administrator so I can call it from a user?   
   >> And No UAC? And no Administrator password prompt?   
   >   
   > If there was a way, the whole point of permissions and UAC would be   
   > negated. Any malware would be able to use that method to gain admin   
   > rights.   
   >   
   >> I am after "list Vol". Is there another way to   
   >> get this information?   
   >   
   > Take a look at PowerShell's Get-Volume. The output is not perfectly   
   > identical, but it might still cover your needs. You can call   
   > PowerShell cmdlets from a CMD command line (or batch file) like this:   
   >   
   > powershell -nologo -executionpolicy bypass -command "get-volume"   
      
   Half way there. I get healthy, but it   
   does not tell me mirrored   
      
   DISKPART>   
    Volume ### Ltr Label Fs Type Size Status Info   
    ---------- --- ----------- ----- ---------- ------- ---------   
   --------   
    Volume 0 C NTFS Mirror 930 GB Healthy Boot   
    Volume 1 FAT32 Partition 100 MB Healthy   
   System   
    Volume 2 NTFS Partition 495 MB Healthy   
   Hidden   
    Volume 3 G DVD-ROM 0 B No Media   
    Volume 4 D LOCALBK NTFS Partition 3725 GB Healthy   
      
   DISKPART>   
   Leaving DiskPart...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|