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 SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
monoeagle
Posts: 107
Joined: Tue Oct 13, 2015 9:10 am

exe bypasses the execution policy?

Post by monoeagle » Mon May 02, 2016 1:56 am

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: 7094
Joined: Tue May 29, 2007 4:43 pm

Re: exe bypasses the execution policy?

Post by Alexander Riedel » Mon May 02, 2016 7:19 am

Yes. The execution policy is only implemented by powershell.exe and the ISE.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
monoeagle
Posts: 107
Joined: Tue Oct 13, 2015 9:10 am

Re: exe bypasses the execution policy?

Post by monoeagle » Mon May 02, 2016 7:42 am

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: 7094
Joined: Tue May 29, 2007 4:43 pm

Re: exe bypasses the execution policy?

Post by Alexander Riedel » Mon May 02, 2016 8:13 am

No, not our script packages. Your script is executed in memory without any temporary file.
Alexander Riedel
SAPIEN Technologies, Inc.