Test-UevTemplate
Letzte Aktualisierung: Januar 2015
Betrifft: User Experience Virtualization 2.0, User Experience Virtualization 2.1
Test-UevTemplate
Syntax
Parameter Set: Path Test-UevTemplate [-Path] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>] Parameter Set: LiteralPath Test-UevTemplate -LiteralPath <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detaillierte Beschreibung
The Test-UevTemplate cmdlet verifies whether a settings location template complies with the XML schema for .
Parameter
-LiteralPath<String[]>
Specifies an array of literal file paths. The cmdlet validates the settings location templates that have the literal paths that you specify.
Aliasse |
PSPath |
Erforderlich? |
true |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
True (ByPropertyName) |
Platzhalterzeichen akzeptieren? |
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.
Aliasse |
Name |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
True (ByValue, ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
-Confirm
Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.
Erforderlich? |
false |
Position? |
named |
Standardwert |
falsch |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WhatIf
Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Erforderlich? |
false |
Position? |
named |
Standardwert |
falsch |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.
-
string[]
An array of paths to settings location templates.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
-
Microsoft.UEV.Commands.TestTemplateResult
This cmdlet generates a TestTemplateResult object that contains the validation result for a settings location template.
Beispiele
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
Verwandte Themen