For PowerShell commands in a LANDESK provisioning task, I use sysnative.
To disable PowerShell security:
- File name: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Argument: -noprofile -command “Set-ExecutionPolicy bypass LocalMachine”
And to run a PowerShell script:
- File name: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Argument: -file c:\configIP\ConfigIP.ps1