Page 1 of 1

Powershell Script - No Output

Posted: Tue Nov 14, 2006 10:55 am
by lajchon_mcright@skillsoft.com
Downloaded and installed latest release, 4.1.529. Attempted to run Powershell script using multiple out type commands. Ran script as "Run Script and Capture Output".I never see any output captured and the powershell.exe process that is spawned from this never returns any data, ie get-date | out-file date.txt. It will sit indefinitely without executing anything. This was originally tested with Powershell 1.0 RC2 and later with Powershell 1.0 RTW. Also, all options for the Powershell language interpreter and debugger are default.

Powershell Script - No Output

Posted: Tue Nov 14, 2006 11:00 am
by Alexander Riedel
Yes, capture output will not work with the current powershell version.
There is something about how they write to the console.
Please let MS know that you would like that to work.

Alex

Powershell Script - No Output

Posted: Tue Nov 14, 2006 11:24 am
by lajchon_mcright@skillsoft.com
Alex,Thanks for the very quick response. Since this appears to be a product limitation with the current version of Powershell, are there more details that I as an end user can pass along to Microsoft other than saying it appears to be something with how the output is being written to the console?Also, is this known-issue stated anywhere in the release notes or bug list for this release?Thanks again.

Powershell Script - No Output

Posted: Tue Nov 14, 2006 3:34 pm
by Alexander Riedel
I'll check where Microsoft wants input for them to be posted.
Since I will also have to create a sample program for the PowerShell folks
I'll let you know where I sent it :-)

Alex

Powershell Script - No Output

Posted: Fri Nov 17, 2006 3:06 am
by jhicks
A workaround if you want to have a record of the console session is to use Start-Transcript and Stop-Transcript in your script.

Code: Select all

Start-Transcript -path e:temptranscript.txt
Get-Date -DisplayHint date | Tee-Object date.txt
Stop-Transcript