Edit

Share via


Set-UevTemplateProfile

Modifies which profile to associate with an individual template.

Syntax

Default (Default)

Set-UevTemplateProfile
    -ID <String>
    -Profile <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Set-UevTemplateProfile cmdlet modifies which profile to associate with an individual template. You can associate a template with the roaming profile or with the backup profile. If you have not specified the profile for a template, the template associates to the roaming profile.

Examples

Example 1: Associate a template with the Backup profile

PS C:\>Set-UevTemplateProfile -ID "MicrosoftCalculator6" -Profile "Backup"

This command associates a template with the backup profile. Settings for the application back-up, instead of synchronizing between computers.

Example 2: Associate a template with the Roaming profile

PS C:\>Set-UevTemplateProfile -ID "MicrosoftCalculator6" -Profile "Roaming"

This command associates a template with the roaming profile. Settings for the application synchronize between computers.

Parameters

-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

-ID

Specifies the ID of a settings location template. If you specify an ID for a template that is not registered, this cmdlet returns an error.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:TemplateID

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Profile

Specifies the name of a profile. The cmdlet associates the template with the specified profile. Valid values are:

  • Roaming
  • Backup

Parameter properties

Type:String
Default value:None
Accepted values:Roaming, Backup, Vdi
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
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.