Issues with Script Packager and Start Transcript

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.
Locked
User avatar
TylerR
Posts: 1
Joined: Thu Mar 16, 2017 12:33 pm

Issues with Script Packager and Start Transcript

Post by TylerR » 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
  1. ERROR: Start-Transcript : This host does not support transcription.
  2.  
  3. ERROR: At line:15 char:17
  4.  
  5. ERROR: + Start-Transcript <<<<  -Path $($folder + '\psTranscript.log')
  6.  
  7. ERROR:     + CategoryInfo          : NotImplemented: (:) [Start-Transcript], PSNotSupportedException
  8.  
  9. ERROR:     + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.Start
  10.  
  11. ERROR:    TranscriptCommand
  12.  
  13. ERROR:
  14.  
  15.  
  16.  
  17.  
  18.  
  19. ERROR: Stop-Transcript : This host does not support transcription.
  20.  
  21. ERROR: At line:33 char:16
  22.  
  23. ERROR: + Stop-Transcript <<<<
  24.  
  25. ERROR:     + CategoryInfo          : NotImplemented: (:) [Stop-Transcript], PSNotSupportedException
  26.  
  27. ERROR:     + FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StopTranscriptCommand
  28.  
  29. ERROR:

User avatar
jvierra
Posts: 11561
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Issues with Script Packager and Start Transcript

Post by jvierra » Mon Mar 20, 2017 3:21 pm

The V2 compiler does not support transcripts like it says in the error. Tu will need to use a V3 or later version.

Locked