Repair-AppvClientPackage

Letzte Aktualisierung: Dezember 2014

Betrifft: Application Virtualization 5.0, Application Virtualization 5.0 SP1, Application Virtualization 5.0 SP2, Application Virtualization 5.0 SP3

Repair-AppvClientPackage

Resets the user settings of a package.

Syntax

Parameter Set: ByGuid
Repair-AppvClientPackage [-PackageId] <Guid> [-VersionId] <Guid> [-Extensions] [-Global] [-UserState] [ <CommonParameters>]

Parameter Set: ByName
Repair-AppvClientPackage [-Name] <String> [[-Version] <String> ] [-Extensions] [-Global] [-UserState] [ <CommonParameters>]

Parameter Set: ByPackage
Repair-AppvClientPackage [-Package] <AppvClientPackage> [-Extensions] [-Global] [-UserState] [ <CommonParameters>]




Detaillierte Beschreibung

The Repair-AppvClientPackage cmdlet deletes the user settings and reset the extension points of the package. Resetting the settings results in permanent loss of any user-specific application settings within the package. The settings are reset to their original state when the package was originally added to the system.

Parameter

-Extensions

Indicates that the cmdlet repairs the extension points of a package only, and does not delete the user state of the package.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Global

Indicates that the extension points for the provided packages are repaired for all users that log into the targeted computer. Otherwise, the extension points of the packages are only repaired for the currently running user.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Name<String>

Specifies the friendly name of the package given during Sequencing time. This value is obtained from the package manifest.


Aliasse

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Package<AppvClientPackage>

Not Specified.


Aliasse

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

True (ByValue)

Platzhalterzeichen akzeptieren?

false

-PackageId<Guid>

Specifies a GUID that uniquely identifies the package. It can be found in the package manifest or by opening the package in the Microsoft Application Virtualization (App-V) Sequencer. The Package ID is shared by all versions of a package.


Aliasse

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-UserState

Indicates that the cmdlet deletes the user state of the package only, and does not perform a repair on the extension points.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Version<String>

Specifies the version of an App-V package in a lineage. If you do not specify this parameter, the cmdlet operates on all versions on the computer.


Aliasse

none

Erforderlich?

false

Position?

2

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-VersionId<Guid>

Specifies the GUID that differentiates a package version from other versions, whether older, newer, or of a completely different lineage. If you do not specify this parameter, the cmdlet operates on all versions of the package.


Aliasse

none

Erforderlich?

true

Position?

2

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

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

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

  • Microsoft.AppvAgent.AppvClientPackage

Ausgaben

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

  • Microsoft.AppvAgent.AppvClientPackage

Beispiele

Example 1: Delete user state for a version of a package

This command deletes the user state of version 3 of the package named MyApp.


PS C:\> Repair-AppvClientPackage -Name "MyApp" -Version 3

Example 2: Delete user state for packages that have a name that matches a string

This command gets all packages that have the string MyA in the name, and then delete the user state for those packages.


PS C:\> Get-AppvClientPackage -Name "MyA*" | Repair-AppvClientPackage

Verwandte Themen

Community-Beiträge

HINZUFÜGEN
Anzeigen: