I have a PowerShell script that produces output to the screen when running it from the PowerShell command line. When I run the PowerShell script as a Scheduled Task, where can I find the output?
Windows 2008 Task Scheduler PowerShell Script Output
task-scheduler
Related Topic
- Powershell – Is it possible for a Powershell script to return the Last Run Result from Windows 2008 task scheduler
- 2008 R2 Task Scheduler won’t run task, but says completed successfully w/o errors
- PowerShell Script Not Running on Scheduled Task – Troubleshooting
- Powershell scheduled task always shows running even once completed
Best Answer
You won't find your output anywhere from your scheduled task. I would suggest sending your scripts output to a text file, you can do so easily by piping your output to the out-file command, e.g.
Or output the whole of your files output using a standard DOS file redirect > file.txt