< Back

Test-AdbItemValidation

Fri Jan 10, 2020 7:20 pm

NAME Test-AdbItemValidation



SYNOPSIS

Test an item against a template schema.





SYNTAX

Test-AdbItemValidation [[-Session] <Object>] [-Template] <String> [-Name] <String[]> [-Quiet] [<CommonParameters>]





DESCRIPTION

This command will invoke the built-in validation to test the specified

item against the template.





PARAMETERS

-Session <Object>

The adb session.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Template <String>

The name of the template to test against.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

Item name to validate.



Required? true

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Quiet [<SwitchParameter>]

If specified, no result object is returned. If the item is valid,

nothing is returned. If the item is invalid, a error is thrown.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Item names.





OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-AdbValidation -Template 'mytemplate' -Name 'myitem'



Test the item 'myitem' against the template 'mytemplate'.











RELATED LINKS