Agent-Client.exe Commands
The following describes the available commands for agent-client.exe. Be sure to wrap all complex passwords in double-quotes like "&()[]{}^=;!'+,`~ my c0mpl3x PW". As a result of this requirement, double quotes cannot be used in passwords or AES secrets. Paths that include a space also require double quotes.
| Command | Description |
|---|---|
|
Help |
Displays the command line options |
|
Create Package |
Creates a new package
...
|
|
Create ArgFile |
Creates optional
|
|
Get Job |
Gets info on an existing job.
|
|
Get Status |
Gets status info on the agent-service
|
Footnotes:
* /Path –Specifies the folder where the packages will be created
-
Specifying a
/Pathending in a FlexApp package's filename.vhdx will perform an extend of that existing package. -
Specifying a
/PathUsernameof"IAM"will attempt to use the Agent machine's assigned IAM roles to access the S3 bucket. -
There are several ways to use
/Path, depending on your target storage platform:-
/Path "<\\server\share\target-path>" [/PathUsername "<domain\user>" /PathPassword "<pass>"] -
/Path <s3://bucket/folder> /PathUsername <access key> /PathPassword <secret key> -
/Path <s3://bucket/folder> /PathUsername "IAM" -
/Path <az://bucket/folder> /PathUsername <account name> /PathPassword <account key> -
/Path <gs://bucket/folder> /PathPassword "<path\credential.json>"
-
** /Installer –Specifies what should be installed, or executed and captured
-
/Installer–Supports several file types beyond EXE's and depending on the file extension, are automatically called by the associated interpreter:-
MSI files will be automatically run via:
msiexec.exe /i /qn.
Additional Arguments can be passed in via/InstallerArgs. -
Batch scripts (bat,cmd) are run via:
cmd.exe /C "installerscript.bat" "</InstallerArgs>" -
Windows Script Host files (vbs,vbe,wsf,wsc,js) are run via:
cscript.exe /b /nologo "installerscript.vbs" "</InstallerArgs>" -
Powershell (ps1) are run via:
powershell.exe -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -NonInteractive -File "installerscript.ps1" "</InstallerArgs>"
-
-
/Installer–Copies the specified file into the local temp folder before executing it unless/DontCopyInstallerLocalis specified.-
If the file specified is a script, then
/CopyInstallerFolderLocalwill be enabled so that supporting files are included. -
The "InstallerFolder" is the folder containing the specified
/Installerfile unless otherwise specified using/InstallerFolder. -
/InstallerFolderimplies/CopyInstallerFolderLocal.
-
-
/Installer–Supports local disk paths, CIFS shares and http(s) URLs.
