Issues with Script Packager and Start Transcript
Posted: Mon Mar 20, 2017 3:08 pm
I am having an issue when I compile my Script with V2 Host (Command Line) (for compatibility reasons) and attempt to start a transcript to collect the console messages. The script works just fine when running thru the normal PowerShell Console, but when I run as the compiled file. No issue with the V3 (Command Line) Host, but the servers I am working with do not like it.
What do I need to select to debug this; or is this a issue with the compiler?
Powershell Studio 2017, V5.4.132
What do I need to select to debug this; or is this a issue with the compiler?
Powershell Studio 2017, V5.4.132
- ERROR: Start-Transcript : This host does not support transcription.
- ERROR: At line:15 char:17
- ERROR: + Start-Transcript <<<< -Path $($folder + '\psTranscript.log')
- ERROR: + CategoryInfo : NotImplemented: (:) [Start-Transcript], PSNotSupportedException
- ERROR: + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.Start
- ERROR: TranscriptCommand
- ERROR:
- ERROR: Stop-Transcript : This host does not support transcription.
- ERROR: At line:33 char:16
- ERROR: + Stop-Transcript <<<<
- ERROR: + CategoryInfo : NotImplemented: (:) [Stop-Transcript], PSNotSupportedException
- ERROR: + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StopTranscriptCommand
- ERROR: