Why isn’t my PowerShell script logging GUI app launches to a CSV file in Scheduled Task?

0
5
Asked By CuriousCactus93 On

I've been trying to create a PowerShell script that logs every GUI application I launch to a CSV file, capturing the date, process name, and full path. However, while the script works fine when I run it manually, it doesn't seem to record anything when triggered by a Scheduled Task. I've made sure the task shows as 'Ready' and it runs on logon, but the CSV file never appears. I've tried a number of things to troubleshoot, like checking the script path, running the task manually, and even changing the logging path, but no luck. What might I be missing?

1 Answer

Answered By SkepticalSquirrel42 On

Have you tried checking the Event Viewer for the Security log? Look for event ID 4688; it logs new process creations which might help you troubleshoot. Just a thought, but it could give you some clues about what's happening behind the scenes!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.