Add-AppxVolume

Add-AppxVolume

Adds an appx volume to the Package Manager.

構文

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

詳細説明

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.

パラメーター

-Path<String[]>

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

Aliases

PSPath

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true(ByValue,ByPropertyName)

ワイルドカード文字の受け入れ

false

<CommonParameters>

このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • Microsoft.Appx.PackageManager.Commands.AppxVolume

    This cmdlet returns the AppxVolume object that it adds.

使用例

Example 1: Add a volume

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

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

関連項目

Dismount-AppxVolume

Get-AppxVolume

Mount-AppxVolume

Remove-AppxVolume