# Set-BluGenieThreadCount

﻿

### Set-BluGenieThreadCount <a href="#set-blugeniethreadcount" id="set-blugeniethreadcount"></a>

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

Set-BluGenieThreadCount is an add-on to manage the ThreadCount in the BluGenie Console

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

```
Set-BluGenieThreadCount [[-Count] <Int32>] [-Reset] [-Walkthrough] [<CommonParameters>]
```

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

Set-BluGenieThreadCount is an add-on to manage the ThreadCount in the BluGenie Console

We use PowerShell Runspace Pools for Multithreading. ThreadCount is used to define the maximum number of threads we wish to run at one time.

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

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

```
Command: Set-BluGenieThreadCount '25'
```

```
Description: Set Thread Count
Notes: The value is a [Int]
```

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

```
Command: Set-BluGenieThreadCount -Count '1000'
```

```
Description: Set JobID using the Count parameter
Notes: The value is a [Int]
```

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

```
Command: ThreadCount -Count '1000'
```

```
Description: Set JobID using the Alias command name while using the JOB ID parameter
Notes: The value is a [Int]
```

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

```
Command: Set-BluGenieThreadCount -Reset
```

```
Description: Reset the Thread Count back to the default which is 50
Notes:
```

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

```
Command: Set-BluGenieThreadCount -Help
```

```
Description: Call Help Information
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal
       Get-Help will be called with the -Full parameter
```

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

```
Command: Set-BluGenieThreadCount -WalkThrough
```

```
Description: Call Help Information [2]
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal
       Get-Help will be called with the -Full parameter
```

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

#### Count <a href="#count" id="count"></a>

```
-Count <Int32>
   Description: ThreadCount value
   Notes:
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    1
   Default value                0
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Reset <a href="#reset" id="reset"></a>

```
-Reset [<SwitchParameter>]
   Description: Reset the current value back to 50
   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:  Start the dynamic help menu system to help walk through the current command and all of the parameters
   Notes:
   Alias: Help
   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).
