obfuscated breaks Write-output

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 months and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

obfuscated breaks Write-output

Post by Woody_033 »

Product: PowerShell Studio 2023 (64 Bit)
Build: v5.8.221
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19045.0

Code: Select all

Write-Output "$(Show-TimeStamp) - Initial Settings"
Output with obfuscation = On

Code: Select all

Show-TimeStamp : The term 'Show-TimeStamp' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:30 char:5
+     "$(Show-TimeStamp) - Initial Settings"
+        ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Show-TimeStamp:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Output with obfuscation = Off

Code: Select all

19:08:40.515 - Initial Settings
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: obfuscated breaks Write-output

Post by brittneyr »

Can you please upload your script here so we can better understand the issue:
https://www.sapien.com/support/upload
Brittney
SAPIEN Technologies, Inc.
User avatar
Woody_033
Posts: 111
Last visit: Wed Nov 15, 2023 3:46 pm
Been upvoted: 1 time

Re: obfuscated breaks Write-output

Post by Woody_033 »

I uploaded the exported script, not sure what your policy was for .exe so i did not include them.
It does not seem to make a difference what hash you use
This example is with write-output but it also did it for the other outputs like write-info and verbos
Same with the different apps, it does not seem to make a difference is its is tray or with output window
I did not try as an installed application
Face piles of trials with smiles and coffee :D
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: obfuscated breaks Write-output

Post by brittneyr »

Thank you for reporting this issue, we have been able to reproduce this behavior and have filed a bug report for the development team.

It is worth mentioning this feature is still considered experimental. If you experience any issues with it, please let us know and disable the option until the issues are resolved.
Brittney
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: obfuscated breaks Write-output

Post by brittneyr »

Service build 5.8.227 included some fixes for our experimental obfuscation option in SAPIEN Script Packager. Please let us know if you are still experiencing issues.
Brittney
SAPIEN Technologies, Inc.
This topic is 7 months and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.