Function is getting Logs from Items from GLPI
Get-GlpiToolsItemLogs -LogsFor <String> -ItemId <Int32> [<CommonParameters>]
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.
Get-GlpiToolsItemLogs -LogsFor Computer -ItemId 2
Exaple will show logs for Computer which id is 2.
2 | Get-GlpiToolsItemLogs -LogsFor Computer
Exaple will show logs for Computer which id is 2. Id is taken from pipeline.
Parameter where you have to provide itemtype. You can choose itemtype from list.
Type: String Parameter Sets: (All) Aliases: Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False
Parameter where you have to provide item id. You can find id in GLPI.
Type: Int32 Parameter Sets: (All) Aliases: CID Required: True Position: Named Default value: None Accept pipeline input: True (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.
You have to provide itemtype and itemid.
Function will return pscustomobject.