Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Restore-UevUserSetting

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Sets a restore flag for the user settings.

SYNTAX

ParameterSetApplication

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

ParameterSetTemplateId

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.

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
Parameter Sets: ParameterSetApplication
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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
Parameter Sets: ParameterSetApplication
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
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
Parameter Sets: ParameterSetTemplateId
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Get-UevTemplate

© 2017 Microsoft