Restore-UevUserSetting

Mis à jour: janvier 2015

S'applique à: User Experience Virtualization 2.0, User Experience Virtualization 2.1

Restore-UevUserSetting

Sets a restore flag for the user settings.

Syntaxe

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

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




Description détaillée

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.

Paramètres

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


Alias

none

Obligatoire ?

true

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

true(ByValue,ByPropertyName)

Accepter les caractères génériques ?

false

-Force

Forces the command to execute without asking for user confirmation.


Alias

none

Obligatoire ?

false

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-LastKnownGood

Restore the application to the settings last known good state.


Alias

none

Obligatoire ?

false

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

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.


Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

true(ByValue,ByPropertyName)

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

Exemples

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

Ajouts de la communauté

AJOUTER
Afficher: