Move-AppxPackage

Move-AppxPackage is accessible with the help of Appx module. To configure Appx, go through this link.

Synopsis

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

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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[]
Position:1
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
Position:2
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
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Move-AppxPackage [-Package] <String[]> [-Volume] <AppxVolume> [-WhatIf] [-Confirm] [<CommonParameters>]

—————-Example 1—————-
Move a package to a volume specified by a path
PS C:> Move-AppxPackage -Package “package01” -Volume D:\
This command moves package that has the specified name to volume D:. This cmdlet also moves your app data.

—————-Example 2—————-
Move a package to a volume specified by an ID
PS C:> Move-AppxPackage -Package “package01” -Volume {VolumeID}
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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Move-AppxPackage

Get-Command Move-AppxPackage powershell script command cmdlet appx

You can also read about

  • Add-AppxPackage
  • Get-AppxPackage
  • Remove-AppxPackage

To know more PowerShell cmdlets(Commands) on Appx click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *