Edit

Share via


Update-UevTemplate

Updates settings location templates in UE-V.

Syntax

Path (Default)

Update-UevTemplate
    [-Path] <String[]>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

LiteralPath

Update-UevTemplate
    -LiteralPath <String[]>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Update-UevTemplate cmdlet updates settings location templates in Microsoft User Experience Virtualization (UE-V). In order for the cmdlet to update a template, the new template must have a higher value for template version.

You must have administrative credentials to run this cmdlet.

Examples

Example 1: Update a template

PS C:\> Update-UevTemplate -Path "MicrosoftCalculator.xml"

This command updates the settings location template specified in the current directory.

Example 2: Update templates by specifying a path

PS C:\> Update-UevTemplate -Path "Microsoft*.xml"

This command updates all settings location templates in the current directory that match the specified string.

Example 3: Update a template by specifying a literal path

PS C:\> Update-UevTemplate -LiteralPath "C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftCalculator.xml"

This command updates a settings location template by specifying a literal path to the template file.

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

-LiteralPath

Specifies an array of literal file paths. The cmdlet updates the settings location templates that have the literal paths that you specify.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:PSPath

Parameter sets

LiteralPath
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Path

Specifies an array of file paths. The cmdlet updates the settings location templates that have the paths that you specify. Use wildcards to specify multiple files.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name

Parameter sets

Path
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.

Inputs

string

An array of paths to settings location templates.