Skip to content
Mark Domansky edited this page Apr 11, 2026 · 6 revisions

Concepts

  • WebJEA's is controlled by a json configuration file, by default located at c:\scripts\config.json.
  • Modifying WebJEA's configuration file is done by editing the json file directly.
  • The top-level settings:
    • Page Title
    • Log Parameters (by default, can be overridden per command)
    • Default Access groups (groups that will have access to all commands)
  • Commands - Each command contains a name and set of optional features.
    • Synopsis - recommended only for landing pages, is a pure html section of text and works well to direct the user to where they need to go. If specified, it will override what is found in the script.
    • Script - this is the script the form will be generated from. It does not support Parameter Sets but does support most advanced function features
    • Onload Script - this script will run when the page for the command is loaded
    • Log Parameters - override whether this script logs parameters.
    • Permitted Groups - a list of local or domain, users or groups that should have access to this command. The format is domain\user.

API

Body
@{
  cmdid = 'apitest'
  parameters = @{
    Identity = 'ABC'
  }
}
$cred = get-credential
Invoke-WebRequest -method POST -contenttype 'application/json' -url 'https://fqdn/api/execute' -credential $cred

Clone this wiki locally