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”
Disable PowerShell security command in LANDESK

And to run a PowerShell script:

  • File name: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  • Argument: -file c:\configIP\ConfigIP.ps1
Run PowerShell script in LANDESK