# Adding and removing steps

{% hint style="info" %}
Recommending leveraging the 'Save all changes' button regularly.  Accidently browsing away from the page will result in losing any changes.  Saving often also allows the option to click cancel when making other accidental errors, like deleting a step unintendedly.
{% endhint %}

To add a Step into the Task Sequence, once the Task Sequence is open, click the blue "Edit mode" button on the upper left to enter edit mode.  Once in edit mode, the button will be replaced with a "Save all changes" button and a "Cancel" button. &#x20;

## Adding a Step

There are different ways to add steps.  The "Add Step" button in the "Task sequence version editor" frame allows you to choose a step and have it added to the task sequence, by default, it will be added to the very end, at which point it can be moved to the desired location. &#x20;

<figure><img src="/files/1EqawHXrONqonHcG5jb4" alt=""><figcaption></figcaption></figure>

Another way to add a step is to go to the group in which the desired destination for the step is and click the plus button to the right of the folder icon.

<figure><img src="/files/AnV84cQKyBVPSO8AUIKN" alt=""><figcaption></figcaption></figure>

At this point, a frame on the right hand side will present itself with the available step definitions that can be added:

<figure><img src="/files/Pf6Rkrph47j08zfWvoMc" alt=""><figcaption></figcaption></figure>

Choose the version, often times there is only 1, then click "Select"<br>

<figure><img src="/files/e25iobzbB7J7wser8UpN" alt=""><figcaption></figcaption></figure>

The step will be added as the last position step in the group that was selected when pressing the "+" icon.

<figure><img src="/files/50TXj8OEg64b8wXbU3m0" alt=""><figcaption></figcaption></figure>

At this point, edit the step, to add the name and script information and click Save.  If you move away from the page without saving, all changes completed will be lost, resulting in the same behavior as pressing the "cancel" button.

## Removing a Step

To remove a step, the task sequence must be in edit mode, then find the step, hover over it to have the available option icons display, a trash can icon will appear, which you can then left click on.

In this example, I have the "Update HP BIOS" step highlighted, but I then hover over the new blank "Run PowerShell script step to show the trash can icon, which I'll then click to remove it.

<figure><img src="/files/IJESk6fYBm5Ot80s12EL" alt=""><figcaption></figcaption></figure>

The removal is immediate, there is no "are you sure about that?" dialog box.  If you accidently delete something and have instant regret, press the cancel button!  When editing is complete, press the "Save all changes" button.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.2pintsoftware.com/deployr/adding-and-removing-steps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
