Mirror status not as administrator

Todd Chester 666 Reputation points
2022-11-14T05:36:15.657+00:00

Problem: this only works as an administrator. how do I get this information as a standard use?

$info = "list volume" | diskpart | ? {$_ -match "mirror"}

Volume ### Ltr Label Fs Type Size Status Info

----------


Volume 0 D Data NTFS Mirror 50 GB Healthy Rd

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,507 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
    2022-11-15T01:43:29.857+00:00

    Hello,

    Welcome to Microsoft Q&A!

    @Todd Chester

    As far as I'm concerned, there is no suitable api to bypass administrator privileges to get this information.

    Thank you

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful