Get-UevTemplateProgram

Mis à jour: janvier 2015

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

Get-UevTemplateProgram

Gets the information about programs defined by a settings location template.

Syntaxe

Parameter Set: Default
Get-UevTemplateProgram [-ID] <String> [ <CommonParameters>]




Description détaillée

The Get-UevTemplateProgram cmdlet gets the information about programs defined by a settings location template. monitors each program that is defined in the template for changes to the settings.

Paramètres

-ID<String>

Specifies the ID of a settings location template. A settings location template stores the location of files and registry keys that contain application settings.


Alias

TemplateID

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

True (ByValue, ByPropertyName)

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.

  • System.String

    The settings location template ID.


Sorties

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

  • Microsoft.UEV.Commands.Process

    This cmdlet generates an object that contains general information about a program defined in a settings location template, such as the program name and the range of the versions to monitor.


Remarques

  • can define multiple programs for a single application in the settings location template.

Exemples

Example 1: Get all defined programs

This command gets the defined programs for all of the registered settings location templates. The command uses the Get-UevTemplate cmdlet to get the template that is stored on the computer, and passes the output to the Get-UevTemplateProgram cmdlet by using the pipeline operator. The command then passes the results to the Format-Table cmdlet by using the pipeline operator. For more information, type Get-Help Format-Table.


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

Example 2: Get all defined programs for Office applications

This command gets the defined programs for the registered settings location templates of Office applications. The command uses the Get-UevTemplate cmdlet to get the Office applications that are defined on the computer, and passes the output to the Get-UevTemplateProgram cmdlet by using the pipeline operator. The command then passes the results to the Format-Table cmdlet by using the pipeline operator. For more information, type Get-Help Format-Table.


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

Example 3: Get all defined programs by template ID

This command gets the defined programs for the settings location template whose ID is MicrosoftCalculator6. The command uses the Get-UevTemplateProgram cmdlet to get the application that is identified by the ID MicrosoftCalculator6. The command then passes the results to the Format-Table cmdlet by using the pipeline operator. For more information, type Get-Help Format-Table.


PS C:\> Get-UevTemplateProgram -TemplateId "MicrosoftCalculator6" | Format-Table -AutoSize

Rubriques connexes

Ajouts de la communauté

AJOUTER
Afficher: