Add-AppxVolume
Add-AppxVolume
Adds an appx volume to the Package Manager.
Syntaxe
Parameter Set: SimpleSet
Add-AppxVolume [-Path] <String[]> [ <CommonParameters>]
Description détaillée
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.
Paramètres
-Path<String[]>
Specifies the path of the mount point of the volume that this cmdlet adds.
Alias |
PSPath |
Requis ? |
true |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l'entrée de pipeline ? |
true(ByValue,ByPropertyName) |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d'informations, consultez . about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d'entrée correspond au type des objets que vous pouvez adresser à l'applet de commande.
Sorties
Le type de sortie correspond au type des objets que l'applet de commande émet.
Microsoft.Appx.PackageManager.Commands.AppxVolume
This cmdlet returns the AppxVolume object that it adds.
Exemples
Example 1: Add a volume
This command adds the volume E:\WindowsApps to Package Manager.
PS C:\> Add-AppxVolume -Path "E:\WindowsApps"