Move-AppxPackage
Moves a package from its current location to another appx volume.
Move-AppxPackage
[-Package] <String[]>
[-Volume] <AppxVolume>
[-WhatIf]
[-Confirm]
[<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's mounted. This cmdlet
also moves your application data to the specified volume.
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.
$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.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an AppxPackage object or the full name of a package. This cmdlet moves the package that this parameter specifies.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies an AppxVolume object. The cmdlet moves the package to the volume that this parameter specifies.
Type: | AppxVolume |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |