PowerTip: Use PowerShell to Find Reserved System Volumes


Summary: Use Windows PowerShell 3.0 in Windows 8 to find information about the system reserved volume.

Hey, Scripting Guy! Question How can I use Windows PowerShell 3.0 in Windows 8 to return information about my system reserved volume?

Hey, Scripting Guy! Answer Use the Get-Volume function and specify the FileSystemLabel of “System Reserved”:

Get-Volume -FileSystemLabel "System Reserved"

 

Comments (6)

  1. mredwilson says:

    @Krunch your answer works, as does this: gwmi win32_volume -filter 'label LIKE "%SYSTEM RESERVED%"' which avoids the extra where cmdlet. In addition, your answer works for ANY volume on any OS Windows Server 2003 and above.

    Of course, if you are specifically looking for System Reserved — which is a WIndows 8 thing, then there is no reason not to use Get-Volume cmdlet 🙂

    Good job!

  2. _Emin_ says:

    @Krunch {The Commenter formerly known as K}

    [System.IO.DriveInfo]::GetDrives() doesn't list my system reserved partition on my W8

    You're right , w/o admin privilege I got:

    Get-Partition : Access to a CIM resource was not available to the client.

    PermissionDenied: (MSFT_Partition:ROOT/Microsoft/…/MSFT_Partition

  3. _Emin_ says:

    A better alternative ?

    Get-Partition | ? AccessPaths -eq $null

  4. Krunch {The Commenter formerly known as K} says:

    gwmi win32_volume | ?{$_.label -match "SYSTEM RESERVED"}

  5. Krunch {The Commenter formerly known as K} says:

    @_Emin_ you need to be admin and it gets no info on SYSTEM RESERVED volume.

    its very similar to:

    [System.IO.DriveInfo]::GetDrives()

  6. Krunch {The Commenter formerly known as K} says:

    after 3 days. I ,much like a school boy waiting for a pat on the head from the teacher, await a comment from @IamMred to validate my sad existence of minor input

Skip to main content