Set-AppxDefaultVolume

Set-AppxDefaultVolume

Specifies a default appx volume.

構文

Parameter Set: Default
Set-AppxDefaultVolume [-Volume] <AppxVolume> [ <CommonParameters>]

詳細説明

The Set-AppxDefaultVolume cmdlet specifies a default AppxVolume. The default AppxVolume is the default target for all deployment operations on the computer. Deployment operations can specify a different non-default target volume.

パラメーター

-Volume<AppxVolume>

Specifies the path a volume. This cmdlet sets the volume that this parameter specifies to be the default deployment target for the computer.

Aliases

none

必須/オプション

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) を参照してください。

入力

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

出力

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

使用例

Example 1: Set a default volume by using a path

This command sets the default volume to be the volume F:\.

PS C:\> Set-AppxDefaultVolume -Volume F:\ 

Example 2: Set a default volume by using an ID

This command sets the default volume to be the one that has the specified media ID.

PS C:\> Set-AppxDefaultVolume -Volume {ef23c8d6-b13c-4c4c-ae3b-7d5a162de9b9}

関連項目

Get-AppxDefaultVolume