Add-AppxVolume

Add-AppxVolume

Adds an appx volume to the Package Manager.

Syntax

Parameter Set: SimpleSet
Add-AppxVolume [-Path] <String[]> [ <CommonParameters>]

Detaillierte Beschreibung

The Add-AppxVolume cmdlet adds an AppxVolume for the Package Manager to advertise. After you add a volume, appx deployment operations can use that volume as a target. This cmdlet returns the volume that it adds. Note, the input volume must be specified with a trailing folder "WindowsApps", not using "WindowsApps" could lead to inconsistent behavior in the application model subsystems or the volume itself; for more information see the examples section.

Parameter

-Path<String[]>

Specifies the path of the mount point of the volume that this cmdlet adds.

Aliase

PSPath

Erforderlich?

true

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

    This cmdlet returns the AppxVolume object that it adds.

Beispiele

Example 1: Add a volume

This command adds the volume E:\WindowsApps to Package Manager.

PS C:\> Add-AppxVolume -Path "E:\WindowsApps"

Verwandte Themen

Dismount-AppxVolume

Get-AppxVolume

Mount-AppxVolume

Remove-AppxVolume