Search notes:
PowerShell event log
PowerShell has its own event log which can be viewed like so
get-winEvent -logName 'Windows PowerShell' | select-object timeCreated, message
What entries are written into the event log can be controlled by six event log
preference variables whose names start with
$Log…
.
Logging module events
Module events can be logged by setting the module's property
LogPipelineExecutionDetails
to
$true
:
import-module tq84
(get-module).LogPipelineExecutionDetails = $true