Move-AppxPackage
Move-AppxPackage
Moves a package from its current location to another appx volume.
構文
Parameter Set: Default
Move-AppxPackage [-Package] <String[]> [-Volume] <AppxVolume> [ <CommonParameters>]
詳細説明
The Move-AppxPackage cmdlet moves a package from its current location to another AppxVolume. The new location must be a volume that Package Manager knows about and that is mounted. This cmdlet also moves your application data to the specified volume.
パラメーター
-Package<String[]>
Specifies an AppxPackage object or the full name of a package. This cmdlet moves the package that this parameter specifies.
Aliases |
none |
必須/オプション |
true |
位置 |
1 |
既定値 |
none |
パイプライン入力の受け入れ |
true(ByValue,ByPropertyName) |
ワイルドカード文字の受け入れ |
false |
-Volume<AppxVolume>
Specifies an AppxVolume object. The cmdlet moves the package to the volume that this parameter specifies.
Aliases |
none |
必須/オプション |
true |
位置 |
2 |
既定値 |
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: Move a package to a volume specified by a path
This command moves package that has the specified name to volume F:\. This cmdlet also moves your app data.
PS C:\> Move-AppxPackage -Package "package1_1.0.0.0_neutral__8wekyb3d8bbwe" -Volume F:\
Example 2: Move a package to a volume specified by an ID
This command moves package that has the specified name to the volume that has the specified media ID. This cmdlet also moves your app data.
PS C:\> Move-AppxPackage -Package "package1_1.0.0.0_neutral__8wekyb3d8bbwe" -Volume {d2a4d1f4-f45a-46f3-a419-160ab52af091}