Skip to content

Scripts Page

Jakub Šindelář edited this page Sep 4, 2020 · 6 revisions

Scripts page is the most important part of the application. All of the magic happens here. You can browse your available commands there, display their help and launch them.

#c5f015 Attention: Lazy Admin is quite simple and nearly anyone should be able to use it intuitively, but learning all about this page is heavily recommended to avoid any possible mistakes. Making unnecessary mistakes could lead to huge damages to your company, considering you are using such a powerful tool that PowerShell is.

Image 01: Sample appearance of Scripts Page Lazy Admin Scripts Page Screenshot

Searching and Filtering commands

Depending on your master definition and its scripts definitions, you should see table of commands, which can be filtered in two ways.

  • Using search bar in the title bar, you can filter commands based on:
    • Command Name
    • Friendly Name
    • Description

Image 02: With search bar, you can filter both commands table and history table. You can press X to clear search bar. Lazy Admin Scripts Page Screenshot

  • Using menu icon on the left from search bar, you can open application's menu, where commands can be filtered based on definitions group they belong to.

Image 03: Application's left menu containing filter for scripts based on group and Settings and About links. Lazy Admin Scripts Page Screenshot

History

On the right side of the search bar, you can open history tab, which is also part of the Scripts page. History tab allows you to browse your previous commands you executed, view their results or run them again, preloading parameters from previous run. That applies also to workflows, so you can jump straight to the middle of workflow, skipping previous steps.

Image 04: History tab, one executed command per row. Row contains time and date of execution, command's current step and total number of steps, name of command and buttons to display Results and to Repeat command. Lazy Admin Scripts Page Screenshot

Online help

Each command can have external help, which is opened and loaded using help icon ❔ on the right side of the table. If command has no external help defined, description is displayed instead.

Image 05: Online help uses markdown, which allows decent formatting and simple creation. Lazy Admin Scripts Page Screenshot

Running commands

The major function, which is what Lazy Admin is built for. Executing commands takes you through multiple steps, we will explain each one of them below.

Input parameters

The first dialog is started by clicking the Launch button. You will be greeted with dialog containing form, which prompts for all parameters defined by command's definition.

This dialog may contain 3 different parts.

  • If command uses any online services, which require login prior to command execution, buttons are displayed on top of the dialog window. After you click on the button, login command is executed and button turns green.

Image 06: Input dialog with unclicked Az button and clicked Test button. Lazy Admin Scripts Page Screenshot

  • If running workflow command, previous parameters are dispalyed as readonly. If multiple results were selected, you can paginate between them.

Image 07: Multiple parameters can be paginated with arrows on bottom of the dialog. Lazy Admin Scripts Page Screenshot

  • If any parameters are defined, form inputs are displayed based on parameter type. There are currently seven input types.

    • String
    • Number
    • ScriptBlock
    • Switch
    • Boolean
    • Select
    • Multiselect

    Image 08: Sample command with all of the possible input types.

Lazy Admin Scripts Page Screenshot

Clone this wiki locally