I have a powershell script that works great from cmd line, but flakes out a lot when running from task scheduler.
So I need to see all the console output from all the commands.
The script does a lot of external commands (net use, robocopy, etc). The output from these commands is what I most need.
We do not want to instrument each command, because it is ugly, and because we need to run it interactively (and see what is going on).
I tried the powershell "Start-Transcript" with -Verbose, but NONE of the commands are logged to the transcript file. Even when we followed this directive by a guy on the powershell team: | Out-Default (e.g. ipconfig.exe | Out-Default), we STILL do not see the output in the transcript.
What next?