Skip to content

Specify Custom Input Arguments

Adam Mashinchi edited this page Nov 8, 2021 · 7 revisions

Specify Custom Input Arguments Interactively

Use the -PromptForInputArgs switch to set your own values for the input arguments used by the atomic test.

Invoke-AtomicTest T1564.004 -TestNames "Create ADS command prompt" -PromptForInputArgs

Scriptable Custom Input Arguments

You can specify all, or a subset of the input parameters via the command line or a script. Any input parameters not explicitly defined will maintain their default values from the test definition yaml.

$myArgs = @{ "file_name" = "c:\Temp\myfile.txt"; "ads_filename" = "C:\Temp\ads-file.txt"  }
Invoke-AtomicTest T1158 -TestNames "Create ADS command prompt" -InputArgs $myArgs