Move-AppxPackage
Moves a package from its current ___location to another appx volume.
Syntax
Default (Default)
Move-AppxPackage
[-Package] <String[]>
[-Volume] <AppxVolume>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
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's mounted. This cmdlet
also moves your application data to the specified volume.
Examples
Example 1: Move a package to a volume specified by a path
Move-AppxPackage -Package "package1_1.0.0.0_neutral__8wekyb3d8bbwe" -Volume F:\
This command moves package that has the specified name to volume F:\
. This cmdlet also moves your
app data.
Example 2: Move a package to a volume specified by an ID
$params = @{
Package = 'package1_1.0.0.0_neutral__8wekyb3d8bbwe'
Volume = '{d2a4d1f4-f45a-46f3-a419-160ab52af091}'
}
Move-AppxPackage @params
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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Package
Specifies an AppxPackage object or the full name of a package. This cmdlet moves the package that this parameter specifies.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Volume
Specifies an AppxVolume object. The cmdlet moves the package to the volume that this parameter specifies.
Parameter properties
Type: | AppxVolume |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.