System Events
Launch scripts when certain events happen in Windows.
Last updated
Was this helpful?
Was this helpful?
New-PSUSystemEvent -Script "systemEvent.ps1" -Environment "Default" -Credential "Default" -Type "Create" -Condition "TargetInstance isa `"Win32_Process`" and TargetInstance.Name = `"pwsh.exe`"" -Name "PowerShell Started"param($TargetInstance)
New-BurntToastNotification -Text "PowerShell Started! $TargetInstance"