< Back

Get-HB-AssetID

Tue Jan 14, 2020 1:31 am

NAME Get-HB-AssetID



SYNOPSIS

Get the ID of a Hornbill asset





SYNTAX

Get-HB-AssetID [-Value] <String> [-Entity] <String> [-Column] <String> [<CommonParameters>]





DESCRIPTION

Provide a string to query, the entity to search against, and the column to search within, and this CMDLET will

search your Hornbill instance

for a matching asset, returning its primary key





PARAMETERS

-Value <String>

The Value to search for



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Entity <String>

The Entity to search within



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Column <String>

The Column to search within



Required? true

Position? 3

Default value

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



OUTPUTS



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



PS C:\\>Get-HB-AssetID "someserialnumber" "AssetsMobileDevice" "h_serial_number" will search your Hornbill Mobile

Assets and



return the ID for asset with "someserialnumber" in the serial number field











RELATED LINKS