set-executionpolicy unrestricted command result in permanent unrestricted PowerShell access?

When the PowerShell command set-executionpolicy unrestricted is run from the PowerShell will this permanently set the execution policy as unrestricted or does this unrestricted access only remain in effect until the PowerShell session ends?
IT GuyNetwork EngineerAsked:
Who is Participating?
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
The answer is it depends.
There are three scopes that can have an execution policy. Local Machine, current user, and process. Local machine and current user execution policies are stored in the registry, the process policy is stored in memory and is discarded when the powershell instance is terminated or it is changed with the cmdlet.

More detailed information:

It is permanent (or at least until you change it again).

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Glad to help. :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.