Powershell is indeed a very powerful tool, and sometimes we may need to commit several similar operations 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 allows 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