exe bypasses the execution policy?

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 years and 10 months 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
monoeagle
Posts: 108
Last visit: Fri Jan 26, 2024 10:44 am

exe bypasses the execution policy?

Post by monoeagle »

Product, version and build: PSS 5.2.120
32 or 64 bit version of product: x64
Operating system: Win7
32 or 64 bit OS: x64
PowerShell Version: 4.0

Hi@All,

is it normal that if the executionpolicy is set to restricted, the compiled exe can be started?

regards
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: exe bypasses the execution policy?

Post by Alexander Riedel »

Yes. The execution policy is only implemented by powershell.exe and the ISE.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
monoeagle
Posts: 108
Last visit: Fri Jan 26, 2024 10:44 am

Re: exe bypasses the execution policy?

Post by monoeagle »

hmm But isn't the exe just a wrapper for the ps script and will be started powershell.exe parameterized?
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: exe bypasses the execution policy?

Post by Alexander Riedel »

No, not our script packages. Your script is executed in memory without any temporary file.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 7 years and 10 months 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.