Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
El mensaje anterior aparece aproximadamente la mitad de las veces que ejecuto un script de ps1. A veces puedo simplemente cerrar la ventana de Powershell, ejecutar el script nuevamente y se ejecutará sin problemas. Otras veces recibo el mensaje nuevamente.
Esto siempre ha sucedido en varias compilaciones y versiones de Windows 10 (Insider, LTSC, Home), incluidas instalaciones nuevas, y ahora está sucediendo en 11.
Me aseguré de ejecutar Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
antes de ejecutar cualquier script.
¿Es esto sólo otro error más de Microsoft?