4 Replies Latest reply on Jul 11, 2016 1:43 PM by robert.morton

    Command Line options for Powershell Scripts

    psisk Rookie

      Hi folks.


      I wonder if anyone can give me some pointers on the syntax of using the Command Line options for Custom Fields?


      Here's my issue : I'm using PowerShell scripts to gather information from Windows machines and return them as a custom field.

      However, my scripts are blocked because the ExecutionPolicy setting on the machines does not allow scripts to be executed.


      I'm hoping to use the command line options to bypass the execution policy while the script runs.


      Does the command line options field only apply to commands entered in the text box, or also to scripts that are uploaded to LANRev?

      What is the correct format to apply powershell switches?


      e.g. powershell.exe -ExecutionPolicy Bypass -file <Script Uploaded to LANRev>.ps1