< Back

Get-AppxVolume

Tue Jan 29, 2019 9:25 pm

NAME Get-AppxVolume



SYNOPSIS

Gets appx volumes for the computer.





SYNTAX

Get-AppxVolume [[-Path] <String>] -Offline [<CommonParameters>]



Get-AppxVolume [[-Path] <String>] -Online [<CommonParameters>]



Get-AppxVolume [[-Path] <String>] [<CommonParameters>]





DESCRIPTION

The Get-AppxVolume cmdlet gets a list of AppxVolume objects known to the computer. Volumes can be added by the user or a device, for instance, by

using Storage Sense.





PARAMETERS

-Offline [<SwitchParameter>]

Indicates that this cmdlet returns only volumes that are currently dismounted.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Online [<SwitchParameter>]

Indicates that this cmdlet returns only volumes that are currently mounted.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Path <String>

Specifies the path of the mount point of a volume. This cmdlet gets a volume at the location that this parameter specifies.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Microsoft.Appx.PackageManager.Commands.AppxVolume







NOTES









Example 1: Get all the volumes



PS C:\\> Get-AppxVolume



The command gets all the AppxVolume objects on the computer.

Example 2: Get the volume at a path



PS C:\\> Get-AppxVolume -Path F:\\



This command gets the AppxVolume at the path F:\\.

Example 3: Get mounted volumes



PS C:\\> Get-AppxVolume -Online



This command gets only AppxVolume objects that are currently mounted on the computer.

Example 4: Get volumes that are note mounted



PS C:\\> Get-AppxVolume -Offline



This command gets the AppxVolume objects that not currently mounted on the computer.



RELATED LINKS

Add-AppxVolume

Dismount-AppxVolume

Dismount-AppxVolume

Remove-AppxVolume