Get-AppxVolume
Gets appx volumes for the computer.
Syntax
DefaultParameterSet
Get-AppxVolume
[[-Path] <String>]
[<CommonParameters>]
OnlineParameterSet
Get-AppxVolume
[[-Path] <String>]
[-Online]
[<CommonParameters>]
OfflineParameterSet
Get-AppxVolume
[[-Path] <String>]
[-Offline]
[<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.
Examples
Example 1: Get all the volumes
Get-AppxVolume
The command gets all the AppxVolume objects on the computer.
Example 2: Get the volume at a path
Get-AppxVolume -Path F:\
This command gets the AppxVolume at the path F:.
Example 3: Get mounted volumes
Get-AppxVolume -Online
This command gets only AppxVolume objects that are currently mounted on the computer.
Example 4: Get volumes that are note mounted
Get-AppxVolume -Offline
This command gets the AppxVolume objects that not currently mounted on the computer.
Parameters
-Offline
Indicates that this cmdlet returns only volumes that are currently dismounted.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
OfflineParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Online
Indicates that this cmdlet returns only volumes that are currently mounted.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
OnlineParameterSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Path
Specifies the path of the mount point of a volume. This cmdlet gets a volume at the ___location that this parameter specifies.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
DefaultParameterSet
Position: | 1 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.