Remove-AppxVolume

Remove-AppxVolume

Removes an appx volume.

構文

Parameter Set: SisPathSet
Remove-AppxVolume [-Volume] <AppxVolume[]> [ <CommonParameters>]

詳細説明

The Remove-AppxVolume cmdlet removes an AppxVolume. You can only remove a volume after there are no apps staged to it for any user. After you remove a volume, apps can no longer be added to it.

パラメーター

-Volume<AppxVolume[]>

Specifies the AppxVolume object to remove.

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: Remove a volume by using an ID

This command removes a volume that has the specified media ID.

PS C:\> Remove-AppxVolume -Volume {984786d3-0cae-49de-a68f-8bedb0ca260b}

Example 2: Remove a volume by using a path

This command removes a volume at the path E:\.

PS C:\> Remove-AppxVolume -Volume E:\

関連項目

Add-AppxVolume

Dismount-AppxVolume

Get-AppxVolume

Mount-AppxVolume