how to revert the execution policy to restricted after unrestricting

I had changed my execution policy in Windows powershell but would like to change it back to default i.e unrestricted to restricted. Can it be done?

1 Answer

Just like how you ran...

Set-ExecutionPolicy Unrestricted

...to set it to unrestricted, you would simply run this to set it back to restricted:

Set-ExecutionPolicy Restricted
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like