Search code examples
powershellscheduled-taskstask

How do I run a Windows task in the foreground?


I have a task that is not working properly and I would like to have it run in the foreground so I can see its progress. My task is a powershell script and it works perfectly when I manually run it but, some parts fail when it's ran by the task.

Thanks!


Solution

  • You might try Start-Transcript instead. That will capture all the output into a text file.