Add-GenericEvent

according to PsTools documentation,

Add-GenericEvent [-Name] [-Expression] [[-ExpressionType] ] [[-Priority] ]

[[-DataSourceId] ] []

-DataSourceId

Specifies the Configuration API path of the generic event data source to associate the generic event with. The path is a string like “GenericEventDataSource[8607bccc-2bb5-4b47-a7de-8225d14c4213]” despite the parameter name implying it accepts a simple GUID

In which table can I find the value?

Cordially.

The Get-GenericEventDataSource cmdlet will return the sources available, and you want the “Path” property from the generic event data source. If you don’t provide a value for that parameter then the first enabled data source will be used.