< Back

Get-GlpiToolsItemLogs

Mon Jan 13, 2020 10:04 pm

NAME Get-GlpiToolsItemLogs



SYNOPSIS

Function is getting Logs from Items from GLPI





SYNTAX

Get-GlpiToolsItemLogs -LogsFor <String> -ItemId <Int32[]> [<CommonParameters>]





DESCRIPTION

Function is based on ItemID which you can find on bookmark of item which you want to get logs.

Returns object with Logs for specific id of item.





PARAMETERS

-LogsFor <String>

Parameter where you have to provide itemtype. You can choose itemtype from list.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ItemId <Int32[]>

Parameter where you have to provide item id. You can find id in GLPI.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

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

You have to provide itemtype and itemid.





OUTPUTS

Function will return pscustomobject.





NOTES





PSP 05/2019



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



PS C:\\>Get-GlpiToolsItemLogs -LogsFor Computer -ItemId 2



Exaple will show logs for Computer which id is 2.









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



PS C:\\>2 | Get-GlpiToolsItemLogs -LogsFor Computer



Exaple will show logs for Computer which id is 2. Id is taken from pipeline.











RELATED LINKS