< Back

Get-SmaAsset

Thu Jan 16, 2020 9:33 am

NAME Get-SmaAsset



SYNOPSIS







SYNTAX

Get-SmaAsset [[-AssetID] <Int32>] [[-QueryParameters] <String>] [-AsBarcodes] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

Returns information about an SMA asset.





PARAMETERS

-AsBarcodes [<SwitchParameter>]

Will return all barcodes associated with the requested assets. Can be used either with `-AssetID` parameter or

with all assets.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-AssetID <Int32>

Specifies the asset to return from the SMA.



Required? false

Position? 0

Default value 0

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-QueryParameters <String>

Any additional query parameters to be included. String must begin with a '?' character.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



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



OUTPUTS

PSCustomObject







NOTES









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



Get-SmaAsset



Retrieves information for all SMA assets.

-------------------------- EXAMPLE 2 --------------------------



Get-SmaAsset -AssetID 5678



Retrieves information about an asset with ID 5678.

-------------------------- EXAMPLE 3 --------------------------



Get-SmaAsset -AssetID 5678 -AsBarcodes



Retrieves barcode information about an asset with ID 5678.



RELATED LINKS

Online Version: https://github.com/ArtisanByteCrafter/K ... maAsset.md