# Output Execute PowerShell Script Action Has Changed (FB 7.0.0 Build 3002)

**URL:** https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534
**Category:** Bugs
**Created:** [July 9, 2014, 12:14pm UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534 "2014-07-09T12:14:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [July 9, 2014, 12:14pm UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/1 "2014-07-09T12:14:04Z")

</div>

Hi,The output of the Execute PowerShell Script Action produced in Build 3002 appends the string “Successfully Executed PowerShell Script” to the end of the result of the PowerShell script. It looks like it is missing a linefeed. Better still, since this is always appended I always need to parse the result of the Action, it would be better to be able to have an option to suppress that message. You could also wonder why the success/failure is in the result of the PowerShell script. An Action has a success/failure framework why not use that.Regards Alfred

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [July 10, 2014, 1:34am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/2 "2014-07-10T01:34:39Z")

</div>

Hi Alfred,   
  
 Thanks for checking with us about the powershell “Successfully Executed” end state. I have had a run through of a simple powershell script and some other scenario’s. Also installed some previous builds and found that the line “Successfully Executed Powershell Script” is always appended to the end of the powershell output in the FinalBuilder log.   
  
 When storing all the output into a variable the variable only contains the lines logged by the powershell script, as well as the extra success/failure line we add.   
  
 It appears the reason for the success message, is pairing with the failure message. The failure message will push out a result code which otherwise would not appear in the powershell script unless specifically written out.   
  
 I will have a chat with Vincent and see what we can do for you in the action. One of our main tenants is to avoid a “Mixing Desk” style of options.

---

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [July 10, 2014, 10:26am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/3 "2014-07-10T10:26:23Z")

</div>

Hi Jason,   
  
 Thanks. Just to clarify. The script does not give an error it gives me the result that I want. In builds before 3002 the “Succecss…” was appended on a new line, now it seems to be appended w/o. When using var.Split(vbCrLf,…) on the output I could separate them. now I don’t have the New Line anymore.   
  
 Regards Alfred

---

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [July 10, 2014, 10:53am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/4 "2014-07-10T10:53:56Z")

</div>

Hi Jason,   
  
 Another tidbit. I do see “Success…” on a new line in the Live Log. When I log to variable it becomes 1 line by the looks of it.   
  
 This is what I execute:   
  
 if (Test-Path -Path “%FileName%”) {   
 (Get-Acl “%FileName%”).Owner   
 }

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [July 11, 2014, 1:50am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/5 "2014-07-11T01:50:48Z")

</div>

Hi Alfred,   
  
 Great news, I have found the issue and fixed it. The build with the fix is located here;   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_3023.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_3023.exe).   
  
 Just a note that this build is the latest collective build for FinalBuilder. Just as a quick note, it has fixes for the following things;   
  
 - FTP Upload creating empty directories.   
 - FTP Mirror performance and orphan file detection.   
 - SFTP Fixes.   
 - Fix for log to variable performance and line-endings.

---

<div class="post-metadata">

### Author: ![devrieskok](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@devrieskok](https://www.finalbuilder.com/forums/u/devrieskok)
#### Post date: [July 13, 2014, 11:58am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/6 "2014-07-13T11:58:42Z")

</div>

Hi Jason,Thank you again for such a quick reply. Unfortunately build 3023 did not fix the problem.I could not attach a test project to this thread. If you would like to have it drop me an email.P.S. Note that I’m on Windows 8.1. Update 1Regards Alfred

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [August 21, 2014, 1:01am UTC](https://www.finalbuilder.com/forums/t/output-execute-powershell-script-action-has-changed-fb-7-0-0-build-3002/3534/7 "2014-08-21T01:01:06Z")

</div>

Hi Alfred,   
  
 A test project would be great. If you could please send that to [support@finalbuilder.com](mailto:support@finalbuilder.com) that will get to me.
