Restore-UevUserSetting

Aggiornamento: gennaio 2015

Si applica a: User Experience Virtualization 2.0, User Experience Virtualization 2.1

Restore-UevUserSetting

Sets a restore flag for the user settings.

Sintassi

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

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




Descrizione dettagliata

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.

Parametri

-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

Obbligatorio?

true

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

true(ByValue,ByPropertyName)

Accetta caratteri jolly?

false

-Force

Forces the command to execute without asking for user confirmation.


Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-LastKnownGood

Restore the application to the settings last known good state.


Alias

none

Obbligatorio?

false

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

false

Accetta caratteri jolly?

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

Obbligatorio?

true

Posizione?

1

Valore predefinito

none

Accetta input da pipeline?

true(ByValue,ByPropertyName)

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

Esempi

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

Aggiunte alla community

AGGIUNGI
Mostra: