description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
Microsoft.Uev.Commands.dll-Help.xml |
UEV |
12/20/2016 |
2.0.0 |
Test-UevTemplate |
Verifies whether a template complies with the schema for UE-V.
Test-UevTemplate [-Path] <String[]> [<CommonParameters>]
Test-UevTemplate -LiteralPath <String[]> [<CommonParameters>]
The Test-UevTemplate cmdlet verifies whether a settings location template complies with the XML schema for Microsoft User Experience Virtualization (UE-V).
PS C:\> Test-UevTemplate -Path "MicrosoftWordpad.xml" | Format-Table -AutoSize
Path Status Message
---- ------ -------
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftWordpad.xml Valid The template is valid.
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 "*Microsoft*.xml" | Format-Table -AutoSize
Path Status Message
---- ------ -------
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftCalculator.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftInternetExplorer9.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftLync2010.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftNotepad.xml Valid The template is valid.
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 -LiteralPath "MicrosoftWordpad.xml" | Format-Table -AutoSize
Path Status Message
---- ------ -------
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftWordpad.xml Valid The template is valid.
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 -Path "*.xml" | Format-Table -AutoSize
Path Status Message
---- ------ -------
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftCalculator.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftInternetExplorer9.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftLync2010.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftNotepad.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftOffice2010.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftVisualStudio2010.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftWindows7.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftWindows8.xml Valid The template is valid.
C:\Program Files\Microsoft User Experience Virtualization\Templates\MicrosoftWordpad.xml Valid The template is valid.
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.
Specifies an array of literal file paths. The cmdlet validates the settings location templates that have the literal paths that you specify.
Type: String[]
Parameter Sets: LiteralPath
Aliases: PSPath
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
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.
Type: String[]
Parameter Sets: Path
Aliases: Name
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
An array of paths to settings location templates.
This cmdlet generates a TestTemplateResult object that contains the validation result for a settings location template.