< Back

Register-UevTemplate

Wed Jan 30, 2019 6:05 pm

NAME Register-UevTemplate



SYNOPSIS

Registers a settings location template with UE-V.





SYNTAX

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



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





DESCRIPTION

The Register-UevTemplate cmdlet registers a settings location template with Microsoft User Experience Virtualization (UE-V). A template defines settings

to synchronize between computers. After you register a template, UE-V synchronizes the settings. If you try to register a template that is already

registered, the cmdlet returns an error.



You must have administrative credentials to run this cmdlet.





PARAMETERS

-LiteralPath <String[]>

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



Required? true

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Path <String[]>

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

specify multiple files.



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

string[]



An array of paths to the settings location templates.





OUTPUTS









Example 1: Register a template



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



This command registers a template in the current directory.





Example 2: Register multiple templates



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



This command uses a wildcard to specify multiple templates in the current directory.





Example 3: Register all templates in a directory



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



This command uses a wildcard to register all settings location templates that are in the current directory but that are not currently registered.





Example 4: Register a template by using a literal path



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



This command registers a settings location template by using the literal path of the template file.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=826052

Disable-UevTemplate

Enable-UevTemplate

Get-UevTemplate

Test-UevTemplate

Unregister-UevTemplate

Update-UevTemplate