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
exe bypasses the execution policy?
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.
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.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: exe bypasses the execution policy?
Yes. The execution policy is only implemented by powershell.exe and the ISE.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: exe bypasses the execution policy?
hmm But isn't the exe just a wrapper for the ps script and will be started powershell.exe parameterized?
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: exe bypasses the execution policy?
No, not our script packages. Your script is executed in memory without any temporary file.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.