Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Move-AppxPackage

Last Updated: 3/26/2017

SYNOPSIS

Moves a package from its current location to another appx volume.

SYNTAX

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 is 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

PS C:\> 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

PS C:\> Move-AppxPackage -Package "package1_1.0.0.0_neutral__8wekyb3d8bbwe" -Volume {d2a4d1f4-f45a-46f3-a419-160ab52af091}

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.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Package

Specifies an AppxPackage object or the full name of a package. This cmdlet moves the package that this parameter specifies.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Volume

Specifies an AppxVolume object. The cmdlet moves the package to the volume that this parameter specifies.

Type: AppxVolume
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Add-AppxPackage

Get-AppxPackage

Remove-AppxPackage

© 2017 Microsoft