Restore-UevUserSetting
Sets a restore flag for the user settings.
Syntax
ParameterSetApplication
Restore-UevUserSetting
-Application <String>
[-Force]
[-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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParameterSetApplication
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParameterSetApplication
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-LastKnownGood
Indicates that this cmdlet restores the application to the settings last known good state.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ParameterSetTemplateId
Position: | 0 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.