Restore-UevUserSetting

Sets a restore flag for the user settings.

Syntax

Restore-UevUserSetting
       [-Force]
       -Application <String>
       [-LastKnownGood]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Restore-UevUserSetting
       [-TemplateId] <String>
       [-LastKnownGood]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

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.

Examples

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

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

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

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

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

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

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

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"):

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

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

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

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.

Parameters

-Application

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.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to execute without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LastKnownGood

Restore the application to the settings last known good state.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TemplateId

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

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False