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
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
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically