# Set-BluGenieCommands

﻿

### Set-BluGenieCommands <a href="#set-blugeniecommands" id="set-blugeniecommands"></a>

### SYNOPSIS <a href="#synopsis" id="synopsis"></a>

Set-BluGenieCommands is an add-on to manage the Command list in the BluGenie Console

### SYNTAX <a href="#syntax" id="syntax"></a>

```
Set-BluGenieCommands [[-Add] <String[]>] [[-Remove] <String[]>] [[-RemoveIndex] <Int32[]>] [-RemoveAll] [-Walkthrough] [<CommonParameters>]
```

### DESCRIPTION <a href="#description" id="description"></a>

Set-BluGenieCommands is an add-on to manage the Command list in the BluGenie Console

Commands can be BluGenie Functions or any command Posh can run. Note: The Commands action is a specific order.

o 1st - Command section will run in synchronous order o 2nd - Parallel Command section will run all items at the same time. - Parallel Commands run after all Commands in the Command section finish o 3rd - Post Command section will run in synchronous order - Post Commands run after all the Parallel Commands have finished

### EXAMPLES <a href="#examples" id="examples"></a>

#### EXAMPLE 1 <a href="#example-1" id="example-1"></a>

```
Command: Set-BluGenieCommands
```

```
Description: This will give you a list of identified Commands
Notes:
OutType:
```

#### EXAMPLE 2 <a href="#example-2" id="example-2"></a>

```
Command: Set-BluGenieCommands 'Get-SystemInfo'
```

```
Description: This will add the specified Commands to the Command list
Notes:
OutType:
```

#### EXAMPLE 3 <a href="#example-3" id="example-3"></a>

```
Command: Set-BluGenieCommands -Add 'Get-SystemInfo','Invoke-Netstat','Get-ProcessList'
```

```
Description: This will add all of the specified Commands to the Command list
Notes:
OutType:
```

#### EXAMPLE 4 <a href="#example-4" id="example-4"></a>

```
ommand: Set-BluGenieCommands -Remove '^G'
```

```
Description: The -Remove command excepts (RegEx).  This will remove all items with a ( G ) as the first character
Notes:
OutType:
```

#### EXAMPLE 5 <a href="#example-5" id="example-5"></a>

```
Command: Command -Remove 'Get-SystemInfo'
```

```
Description: The -Remove command excepts (RegEx).  This will remove all items with 'Get-SystemInfo' in the name
Notes:
OutType:
```

#### EXAMPLE 6 <a href="#example-6" id="example-6"></a>

```
Command: Set-BluGenieCommands -Remove '^Get-SystemInfo$','^Get-ProcessList$'
```

```
Description: The -Remove command excepts (RegEx).  This will remove all items with that have an exact match of the Command name
Notes:
OutType:
```

#### EXAMPLE 7 <a href="#example-7" id="example-7"></a>

```
Command: Set-BluGenieCommands -RemoveIndex 1
```

```
Description: This will remove the first item in the Command list
Notes:
OutType:
```

#### EXAMPLE 8 <a href="#example-8" id="example-8"></a>

```
Command: Set-BluGenieCommands -RemoveIndex 1,10,12,15
```

```
Description: This will remove all the items from the Command list that have the specified index value.
Notes: To get the Index value you can run (Set-BluGenieCommands).  This will show the Command list and the index values.
OutType:
```

#### EXAMPLE 9 <a href="#example-9" id="example-9"></a>

```
Command: Set-BluGenieCommands -RemoveAll
```

```
Description: This will remove all commands from the Command list
Notes:
OutType:
```

### PARAMETERS <a href="#parameters" id="parameters"></a>

#### Add <a href="#add" id="add"></a>

```
-Add <String[]>
   Description: Add items to the list
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    1
   Default value                
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Remove <a href="#remove" id="remove"></a>

```
-Remove <String[]>
   Description: Remove items from the list
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    2
   Default value                
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### RemoveIndex <a href="#removeindex" id="removeindex"></a>

```
-RemoveIndex <Int32[]>
   Description: Remove items from the list using the index value
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    3
   Default value                
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### RemoveAll <a href="#removeall" id="removeall"></a>

```
-RemoveAll [<SwitchParameter>]
   Description: Remove all commands from the Command list
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    named
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Walkthrough <a href="#walkthrough" id="walkthrough"></a>

```
-Walkthrough [<SwitchParameter>]
   Description: An automated process to walk through the current function and all the parameters
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    named
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### CommonParameters <a href="#commonparameters" id="commonparameters"></a>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).


---

# 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://manuals.blusapphire.io/blugenie/full-function-list/set-blugeniecommands.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.
