Forum Discussion
Marek_G
Apr 02, 2022Copper Contributor
Powershell and scheduled triggered task
pls exist solution how run in scheduled task backgroud powershell ? I want after trigered some eventid run powershell in backgroud without blocking next trigered event.
thanx
3 Replies
- Could you give us some more information?
- Marek_GCopper Contributor
Hi, I wanted to help scheduler task to call powershell cmd let on based event from security log. Unfortunately, the call will block the schedeled task for the next event. That is, how to call powershell asynchrony. So in the end I called the classic powershell from which I call another powershell to help start-process ....
- Could you tell us some more? You already have an event in the eventlogid that if triggered should start a program using the "Attach task to this event" ? That could be te powershell executable with as parameter a .ps1 file. Or do you want to run a script in Scheduled Tasks that keeps on scanning for an EventID and does something when it finds it?