Powershell – Autoriser l’exécution de scripts non signés

Publié le 05 janvier 2022 par Crocodanser

Je n’ai pas encore cherché comment signé un script powershell mais pour forcé l’execution d’un script powershell, vous pouvez essayez d’exécuté ces commandes :

Démarrer powershell en mode administrateur :

cutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass
Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy Bypass
Set-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\PowerShell -Name ExecutionPolicy -Value ByPass

Visualisé l’état des restrictions :

Get-ExecutionPolicy -List

Pensez à remettre les bonnes restrictions une fois terminer.

The post Powershell – Autoriser l’exécution de scripts non signés first appeared on Croc-Informatique.fr.