Get-AppxVolume

Get-AppxVolume

Gets appx volumes for the computer.

Syntax

Parameter Set: DefaultParameterSet
Get-AppxVolume [[-Path] <String> ] [ <CommonParameters>]

Parameter Set: OfflineParameterSet
Get-AppxVolume -Offline [-Path <String> ] [ <CommonParameters>]

Parameter Set: OnlineParameterSet
Get-AppxVolume -Online [-Path <String> ] [ <CommonParameters>]

Detaillierte Beschreibung

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.

Parameter

-Offline

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

Aliase

none

Erforderlich?

true

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Online

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

Aliase

none

Erforderlich?

true

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

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.

Aliase

none

Erforderlich?

false

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

true (ByValue, ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • Microsoft.Appx.PackageManager.Commands.AppxVolume

Beispiele

Example 1: Get all the volumes

The command gets all the AppxVolume objects on the computer.

PS C:\> Get-AppxVolume

Example 2: Get the volume at a path

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

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

Example 3: Get mounted volumes

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

PS C:\> Get-AppxVolume -Online

Example 4: Get volumes that are note mounted

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

PS C:\> Get-AppxVolume -Offline

Verwandte Themen

Add-AppxVolume

Dismount-AppxVolume

Mount-AppxVolume

Remove-AppxVolume