Get-UevTemplate

Mis à jour: janvier 2015

S'applique à: User Experience Virtualization 2.0, User Experience Virtualization 2.1

Get-UevTemplate

Gets settings location templates for .

Syntaxe

Parameter Set: ParameterProfile
Get-UevTemplate -Profile <String> [ <CommonParameters>]

Parameter Set: ParameterSetApplication
Get-UevTemplate -Application <String> [ <CommonParameters>]

Parameter Set: ParameterSetApplicationOrTemplateID
Get-UevTemplate [-ApplicationOrTemplateID] <String> [ <CommonParameters>]

Parameter Set: ParameterSetTemplateID
Get-UevTemplate -TemplateID <String> [ <CommonParameters>]




Description détaillée

The Get-UevTemplate cmdlet gets settings location templates that are registered with . Use this cmdlet to display information which includes the template ID, template name, template version, template description, template type, and the state settings of the template. The template ID includes a primary ID and a secondary ID. Applications in the same suite share the same primary ID.

Paramètres

-Application<String>

Specifies the name of an application. The cmdlet gets templates that include the applications that you specify. Use wildcards to specify a partial name.


Alias

none

Obligatoire ?

true

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-ApplicationOrTemplateID<String>

Specifies an application name or a template ID. The cmdlet gets templates that include the applications or IDs that you specify. Use wildcards to specify partial names or IDs.


Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Profile<String>

Specifies the name of a profile. The cmdlet gets all templates associated with the specified profile. Valid values are:

-- Roaming
-- Backup


Alias

none

Obligatoire ?

true

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-TemplateID<String>

Specifies the ID of a template. The cmdlet gets templates that include the applications that you specify. Use wildcards to specify partial IDs.


Alias

none

Obligatoire ?

true

Position ?

named

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

  • Microsoft.UEV.Commands.Template

    This cmdlet generates a Template object that contains the general information about a settings location template, such as template ID, template name, and template version.


Exemples

Example 1: Get all registered templates

This command gets all the settings location templates that are registered with , and then passes them to the Format-Table cmdlet by using the pipeline operator. For more information, type Get-Help Format-Table.


PS C:\> Get-UevTemplate | Format-Table -AutoSize

Example 2: Get registered templates that contain a specified string

This command gets settings location templates that are registered with , and passes them to Format-Table by using the pipeline operator. This command specifies a value for the ApplicationOrTemplateID parameter. The cmdlet gets the templates that have a name or template ID that includes the specified string.


PS C:\> Get-UevTemplate -ApplicationOrTemplateID "office" | Format-Table -AutoSize

Example 3: Get registered templates that contain a specified string that includes a wildcard

This command gets settings location templates that are registered with , and passes them to Format-Table by using the pipeline operator. This command specifies a value for the ApplicationOrTemplateID parameter that contains a wildcard. The cmdlet gets the templates that have a name or template ID that includes the string office followed by the string word.


PS C:\> Get-UevTemplate -ApplicationOrTemplateID "office*word" | Format-Table -AutoSize

Example 4: Get registered templates associated with the Backup profile

This command gets settings location templates that are registered with and are associated with the Backup profile.


PS C:\> Get-UevTemplate -Profile Backup

Rubriques connexes

Ajouts de la communauté

AJOUTER
Afficher: