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,097 of 42,547   
   Robert Roland to T@invalid.invalid   
   Re: DISKPART is now a administrator call   
   12 Nov 22 12:42:36   
   
   XPost: alt.comp.os.windows-11   
   From: fake@ddress.no   
      
   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"   
   --   
   RoRo   
      
   --- 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