Test-UevTemplate

Aggiornamento: gennaio 2015

Si applica a: User Experience Virtualization 2.0, User Experience Virtualization 2.1

Test-UevTemplate

Verifies whether a template complies with the schema for .

Sintassi

Parameter Set: Path
Test-UevTemplate [-Path] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: LiteralPath
Test-UevTemplate -LiteralPath <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]




Descrizione dettagliata

The Test-UevTemplate cmdlet verifies whether a settings location template complies with the XML schema for .

Parametri

-LiteralPath<String[]>

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


Alias

PSPath

Obbligatorio?

true

Posizione?

named

Valore predefinito

none

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

false

-Path<String[]>

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


Alias

Name

Obbligatorio?

true

Posizione?

1

Valore predefinito

none

Accetta input da pipeline?

True (ByValue, ByPropertyName)

Accetta caratteri jolly?

false

-Confirm

Richiede conferma prima di eseguire il cmdlet.


Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

-WhatIf

Mostra gli effetti dell'esecuzione del cmdlet. Il cmdlet non viene eseguito.


Obbligatorio?

false

Posizione?

named

Valore predefinito

False

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

  • string[]

    An array of paths to settings location templates.


Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

  • Microsoft.UEV.Commands.TestTemplateResult

    This cmdlet generates a TestTemplateResult object that contains the validation result for a settings location template.


Esempi

Example 1: Test a file

This command tests whether the specified file is a valid settings location template. The command passes the results to the Format-Table cmdlet by using the pipeline operator. For more information, type Get-Help Format-Table.


PS C:\> Test-UevTemplate -Path "MicrosoftWordpad.xml" | Format-Table -AutoSize

Example 2: Test several files

This command tests whether several files are valid settings location templates. The command checks all .xml files that have names that contain the specified string. The command passes the results to Format-Table by using the pipeline operator.


PS C:\> Test-UevTemplate -Path "*Microsoft*.xml" | Format-Table -AutoSize

Example 3: Test a file specified by its literal path

This command tests whether the specified file is a valid settings location template file. The command passes the results to Format-Table by using the pipeline operator.


PS C:\> Test-UevTemplate -LiteralPath "MicrosoftWordpad.xml" | Format-Table -AutoSize

Example 4: Test all the files in the current directory by using the pipeline

This command uses a wildcard to test if each file is a settings location template, and then passes the results to Format-Table by using the pipeline operator.


PS C:\> Test-UevTemplate -Path "*.xml" | Format-Table -AutoSize

Argomenti correlati

Aggiunte alla community

AGGIUNGI
Mostra: