our les commandes powershell dans une tache de provisionning LANDESK j’utilise le sysnative
Ce qui donne pour désactiver la sécurité powershell :
- Nom du fichier : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Argument : -noprofile -command « Set-ExecutionPolicy bypass LocalMachine »
Et pour lancer un powershell
- Nom du fichier : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Argument : -file c:\configIP\ConfigIP.ps1