Page 1 of 1

exe bypasses the execution policy?

Posted: Mon May 02, 2016 1:56 am
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

Re: exe bypasses the execution policy?

Posted: Mon May 02, 2016 7:19 am
by Alexander Riedel
Yes. The execution policy is only implemented by powershell.exe and the ISE.

Re: exe bypasses the execution policy?

Posted: Mon May 02, 2016 7:42 am
by monoeagle
hmm But isn't the exe just a wrapper for the ps script and will be started powershell.exe parameterized?

Re: exe bypasses the execution policy?

Posted: Mon May 02, 2016 8:13 am
by Alexander Riedel
No, not our script packages. Your script is executed in memory without any temporary file.