HOWTO enable Powershell script execution

Powershell is indeed a very powerful tool, and sometimes we may need commit several similar operation that we can quickly organize in a script.

By default, you cannot execute any unsigned powershell script.  This can be a problem if we don’t know how, or you need to do a quick maintenance task.

We can bypass this setting, by opening a Powershell window with administrative access rights and typing the following command:

set-executionpolicy remotesigned

This allow to execute unsigned local scripts.

At the end of our task, we can restore the default setting by typing the following command:

set-executionpolicy restricted
Print Friendly, PDF & Email