I've used Start-Transcript for some time, and it suddenly has stopped being usable from ISE.
This should speak for itself:
PS ~> cd c:/tmp/somedir PS C:/tmp/somedir> ls Directory: C:\tmp\somedir Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2016/01/18 13:35 subdir d----- 2016/01/18 13:35 suf -a---- 2013/11/07 14:12 0 bar.exe -a---- 2013/11/07 14:08 0 bar.txt -a---- 2013/11/07 14:08 0 foo.exe -a---- 2013/11/07 14:08 0 foo.ini -a---- 2013/11/07 14:08 0 foo.txt
PS C:/tmp/somedir> start-transcript Transcript started, output file is C:\private_sba\NET\DOC\PowerShell_transcript.SBA1446.FuvZcPMm.20160413093213.txt PS C:/tmp/somedir> ls PS C:/tmp/somedir> stop-transcript PS C:/tmp/somedir> ls PS C:/tmp/somedir>
After the attempt to use Start/Stop-Transcript, the host doesn't show any output anymore!
The transcript contains:
********************** Windows PowerShell transcript start Start time: 20160413093213 Username: OCECRETEIL\sba RunAs User: OCECRETEIL\sba Machine: SBA1446 (Microsoft Windows NT 10.0.10586.0) Host Application: C:\windows\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe Process ID: 9660 PSVersion: 5.0.10586.122 PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.10586.122 BuildVersion: 10.0.10586.122 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Transcript started, output file is C:\private_sba\NET\DOC\PowerShell_transcript.SBA1446.FuvZcPMm.20160413093213.txt PS C:/tmp/somedir> PS>Get-Variable>> TerminatingError(): "The pipeline has been stopped.">> TerminatingError(out-lineoutput): "Unable to perform host dependent operation.">> ls Directory: C:\tmp\somedir Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2016/01/18 13:35 subdir d----- 2016/01/18 13:35 suf -a---- 2013/11/07 14:12 0 bar.exe -a---- 2013/11/07 14:08 0 bar.txt -a---- 2013/11/07 14:08 0 foo.exe -a---- 2013/11/07 14:08 0 foo.ini -a---- 2013/11/07 14:08 0 foo.txt PS C:/tmp/somedir> PS>Get-Variable>> TerminatingError(): "The pipeline has been stopped.">> TerminatingError(out-lineoutput): "Unable to perform host dependent operation." PS>Get-Variable>> TerminatingError(): "The pipeline has been stopped.">> TerminatingError(out-lineoutput): "Unable to perform host dependent operation.">> stop-transcript ********************** Windows PowerShell transcript end End time: 20160413093219 **********************The same operations work fine from a console host.
FWIW: I have ISE Preview 5.1.1 installed side-by-side with RTM ISE. Same behavior there.
Any clue?