Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-20-2015, 10:41 AM
dorrellg dorrellg is online now
Registered User
 
Join Date: 02-06-2013
Posts: 2
Logging PowerShell action script

When using the PowerShell command within VBP, if you enter a script, when it is executed, VBP creates a tmp.ps1 file. Is there anyway to get this temp PS1 file? We'd like to keep a record of exactly how the PS code looks when it is executes. It also helps for debugging and troubleshooting processes.

In the example output below, you can see that all we have is that a tmp PS1 file was executed. There could've been 50 commands in the file, and we'd like to see what they are. Can we redirect input/output of the PS1 file?

Any help would be greatly appreciated.

Example Output:
11/20/2015 3:23:16 PM: Building project step 'Check-Create container if it does not exist'...
C:\Windows\System32\WindowsPowerShell\v1.0\powersh ell.exe -nologo -noninteractive -executionpolicy Unrestricted "& C:\Users\a212314650\AppData\Local\Temp\VisF783.tmp .ps1"

NOTE: I am using V8.6
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:51 PM.


Copyright © 1999-2023 Kinook Software, Inc.