home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,098 of 42,547   
   T to Robert Roland   
   Re: DISKPART is now a administrator call   
   12 Nov 22 04:02:38   
   
   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)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca