System Events
Launch scripts when certain events happen in Windows.
Last updated
Launch scripts when certain events happen in Windows.
Last updated
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"