Site icon TOSS

Get-AppxVolume

powershell

Get-AppxVolume is accessible with the help of Appx module. To configure Appx, go through this link.

Synopsis

Gets appx volumes for the computer.

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

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

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Online

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

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Path

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

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Syntax

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

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

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

—————–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 E:\
This command gets the AppxVolume at the path E:.

—————–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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-AppxVolume

You can also read about

To know more PowerShell cmdlets(Commands) on Appx click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version