Move-AppxPackage

Move-AppxPackage

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

Syntax

Parameter Set: Default
Move-AppxPackage [-Package] <String[]> [-Volume] <AppxVolume> [ <CommonParameters>]

Detaillierte Beschreibung

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.

Parameter

-Package<String[]>

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

Aliase

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue,ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-Volume<AppxVolume>

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

Aliase

none

Erforderlich?

true

Position?

2

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue,ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

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}

Verwandte Themen

Add-AppxPackage

Get-AppxPackage

Remove-AppxPackage