< Back

Get-ModificationHistory

Sun Jan 19, 2020 5:41 pm

NAME Get-ModificationHistory



SYNOPSIS

Retrieves the setting/state modification history of a PRTG Object.





SYNTAX

Get-ModificationHistory -Object <SensorOrDeviceOrGroupOrProbe> [<CommonParameters>]



Get-ModificationHistory -Id <int> [<CommonParameters>]





DESCRIPTION

The Get-ModificationHistory cmdlet retrieves all setting/state modifications of an object. The

Get-ModificationHistory cmdlet corresponds with the "History" tab of objects in the PRTG UI.





PARAMETERS

-Object <SensorOrDeviceOrGroupOrProbe>

The object to retrieve historical data for.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Id <int>

The ID of the object to retrieve historical data for.



Required? true

Position? named

Default value 0

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

PrtgAPI.SensorOrDeviceOrGroupOrProbe

The object to retrieve historical data for.





OUTPUTS

PrtgAPI.ModificationEvent





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



C:\\> Get-Sensor -Id 1001 | Get-ModificationHistory



Retrieve all modification events for the sensor with ID 1001



RELATED LINKS

Online version: https://github.com/lordmilko/PrtgAPI/wi ... -history-1

Get-Sensor

Get-Device

Get-Group

Get-Probe