PowerShell 4.0
It is possible to set the execution policy for the process scope when the powershell
host is launching. For example:
powershell -executionpolicy bypass
I want to do the same for powershell_ise
host, but it hasn't the ExecutionPolicy
key. Is exist the similar method of the execution policy setting for that host (maybe through the other way instead of keys)?
PS Of course, I can type this cmdlet
manually, when powershell_ise
will be launched, but I would want to create the separate label on my desktop for launching powershell_ise
with this setting when I need it.
Process scope execution policy is controlled by the PSExecutionPolicyPreference
environment variable. You can set this environment variable to desired value before starting PowerShell ISE.
Help is needed to set all of the ExecutionPolicies to "Restricted enter image description here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.