< Back
Restore-UevUserSetting
Post
NAME Restore-UevUserSetting
SYNOPSIS
Sets a restore flag for the user settings.
SYNTAX
Restore-UevUserSetting [-Force] [-LastKnownGood] -Application <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-UevUserSetting [-TemplateId] <String> [-LastKnownGood] [-Confirm] [-WhatIf] [<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.
PARAMETERS
-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.
Required? true
Position? named
Default value none
Accept pipeline input? true(ByValue,ByPropertyName)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Forces the command to run without asking for user confirmation.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-LastKnownGood [<SwitchParameter>]
Indicates that this cmdlet restores the application to the settings last known good state.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? 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.
Required? true
Position? 1
Default value none
Accept pipeline input? true(ByValue,ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=826055
Get-UevTemplate
SYNOPSIS
Sets a restore flag for the user settings.
SYNTAX
Restore-UevUserSetting [-Force] [-LastKnownGood] -Application <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-UevUserSetting [-TemplateId] <String> [-LastKnownGood] [-Confirm] [-WhatIf] [<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.
PARAMETERS
-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.
Required? true
Position? named
Default value none
Accept pipeline input? true(ByValue,ByPropertyName)
Accept wildcard characters? false
-Force [<SwitchParameter>]
Forces the command to run without asking for user confirmation.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-LastKnownGood [<SwitchParameter>]
Indicates that this cmdlet restores the application to the settings last known good state.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? 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.
Required? true
Position? 1
Default value none
Accept pipeline input? true(ByValue,ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
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.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=826055
Get-UevTemplate