Restore-UevUserSetting

Letzte Aktualisierung: Januar 2015

Betrifft: User Experience Virtualization 2.0, User Experience Virtualization 2.1

Restore-UevUserSetting

Sets a restore flag for the user settings.

Syntax

Parameter Set: ParameterSetApplication
Restore-UevUserSetting -Application <String> [-Force] [-LastKnownGood] [ <CommonParameters>]

Parameter Set: ParameterSetTemplateId
Restore-UevUserSetting [-TemplateId] <String> [-LastKnownGood] [ <CommonParameters>]




Detaillierte Beschreibung

The Restore-UevUserSetting cmdlet sets a restore flag for the user application settings or Windows operating system settings group. You must perform this action for each application for which to restore the user settings. The settings are restored the next time you run the application or log on to the operating system.

Parameter

-Application<String>

Specifies the name of an application. Use the application name, or a partial name with wildcard characters, to set the restore flag for specific applications.


Aliasse

none

Erforderlich?

true

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue,ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-Force

Forces the command to execute without asking for user confirmation.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-LastKnownGood

Restore the application to the settings last known good state.


Aliasse

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-TemplateId<String>

Specifies the ID of a template. The cmdlet sets the restore flag for the application settings or operating system settings group to restore.


Aliasse

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByValue,ByPropertyName)

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.

Ausgaben

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

Beispiele

-------------------------- EXAMPLE 1 --------------------------

Description-----------This command sets a restore flag for the user settings that are identified by the template ID MicrosoftCalculator6.


PS C:\> 
Restore-UevUserSetting -TemplateId "MicrosoftCalculator6"                        

-------------------------- EXAMPLE 2 --------------------------

Description-----------This command sets a restore flag for all user settings.


PS C:\> 
Get-UevTemplate | Restore-UevUserSetting                        

-------------------------- EXAMPLE 3 --------------------------

Description-----------This command sets a restore flag for user settings for applications with names that contain the string word.


PS C:\> 
Restore-UevUserSetting -Application "word"

Confirm
The following user settings will be restored:

MicrosoftOffice2010.Word (Microsoft Office 2010.Word)
MicrosoftWordpad6 (Microsoft Wordpad)

[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):                        

-------------------------- EXAMPLE 4 --------------------------

Description-----------This command sets a restore flag for the user settings of the application whose name contains the strings office and word, in that order.


PS C:\> 
Restore-UevUserSetting -Application "office*word" -Force                        

Community-Beiträge

HINZUFÜGEN
Anzeigen: