Restore-Uev User Setting

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: Restore user settings for a specific template

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

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

Example 2: Restore all user settings

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

This command sets a restore flag for all user settings.

Example 3: Restore user settings that match an application name

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

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

Example 4: Restore user settings that match a pattern

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

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

Required 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
Accept pipeline input: True (ByPropertyName, ByValue)
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
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Aliases: cf
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Force

Forces the command to run without asking for user confirmation.

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

Indicates that this cmdlet restores the application to the settings last known good state.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
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: False
Accept pipeline input: False
Accept wildcard characters: False