# Expand-BluGenieArchivePS2

﻿

### Expand-BluGenieArchivePS2 <a href="#expand-blugeniearchiveps2" id="expand-blugeniearchiveps2"></a>

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

Expand-BluGenieArchivePS2 Extracts files from a specified archive (zipped) file.

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

```
Expand-BluGenieArchivePS2 [[-Path] <String>] [[-Destination] <String>] [[-NoProgressBar]] [[-Force]] [[-ProgressOnly]] [[-NoErrorMsg]] [[-Walkthrough]] [[-ReturnObject]] [[-OutUnEscapedJSON]] [<CommonParameters>]
```

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

Expand-BluGenieArchivePS2 is a PowerShell 2.0 version of Expand-Archive which extracts files from a specified archive (zipped) file.

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

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

```
Expand-BluGenieArchivePS2 -Path C:\Source\SysinternalsSuite.zip -Destination C:\Source\SysinternalsSuite
```

```
This will extact the zip files contents to the destination directory.  If the directory doesn't exist it will be created on the fly.
~ By default this will not overwrite any files 
~ A progress bar is displayed showing the current activities, including what file is currently being extracted.
```

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

```
Expand-BluGenieArchivePS2 -Path C:\Source\SysinternalsSuite.zip -Destination C:\Source\SysinternalsSuite -ProgressOnly
```

```
This will extact the zip files contents to the destination directory.  If the directory doesn't exist it will be created on the fly.
~ By default this will not overwrite any files 
~ A progress bar is displayed showing the current activities.  However all file names are hidden from view.  Only the overall progress is shown.
```

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

```
Expand-BluGenieArchivePS2 -Path C:\Source\SysinternalsSuite.zip -Destination C:\Source\SysinternalsSuite -NoProgressBar -NoErrorMsg -Force
```

```
This will extact the zip files contents to the destination directory.  If the directory doesn't exist it will be created on the fly.
~ All extracted content with the same name as the destination direcotry content will be overwritten 
~ All progress information including error messages will be hidden
```

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

```
Expand-BluGenieArchivePS2 -Path C:\Source\SysinternalsSuite.zip -Destination C:\Source\SysinternalsSuite -NoProgressBar -NoErrorMsg -Force -ReturnObject
```

```
This will extact the zip files contents to the destination directory.  If the directory doesn't exist it will be created on the fly.
~ All extracted content with the same name as the destination direcotry content will be overwritten 
~ All progress information including error messages will be hidden
~ The Return data will be in an Object format.  $true / $false
```

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

```
Expand-BluGenieArchivePS2 -Path C:\Source\SysinternalsSuite.zip -Destination C:\Source\SysinternalsSuite -NoProgressBar -NoErrorMsg -Force -OutUnEscapedJSON
```

```
This will extact the zip files contents to the destination directory.  If the directory doesn't exist it will be created on the fly.
~ All extracted content with the same name as the destination direcotry content will be overwritten 
~ All progress information including error messages will be hidden
~ The Return data will be in a beautified json format
```

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

#### Path <a href="#path" id="path"></a>

```
-Path <String>
   The .Zip file source path
   
   <Type>String<Type>
   
   Required?                    false
   Position?                    2
   Default value                
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Destination <a href="#destination" id="destination"></a>

```
-Destination <String>
   The Destination path
   
   <Type>String<Type>
   
   Required?                    false
   Position?                    3
   Default value                
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### NoProgressBar <a href="#noprogressbar" id="noprogressbar"></a>

```
-NoProgressBar [<SwitchParameter>]
   Do not show an active progress bar
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    4
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Force <a href="#force" id="force"></a>

```
-Force [<SwitchParameter>]
   Forces the file overwrite
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    5
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### ProgressOnly <a href="#progressonly" id="progressonly"></a>

```
-ProgressOnly [<SwitchParameter>]
   Only show the progress bar, do not show the extracted content.
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    6
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### NoErrorMsg <a href="#noerrormsg" id="noerrormsg"></a>

```
-NoErrorMsg [<SwitchParameter>]
   Do not show any pop up error messages to the screen
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    7
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

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

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

#### ReturnObject <a href="#returnobject" id="returnobject"></a>

```
-ReturnObject [<SwitchParameter>]
   Return information as an Object.
   By default the data is returned as a Hash Table
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    9
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### OutUnEscapedJSON <a href="#outunescapedjson" id="outunescapedjson"></a>

```
-OutUnEscapedJSON [<SwitchParameter>]
   Removed UnEsacped Char from the JSON Return.
   This will beautify json and clean up the formatting.
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    10
   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/expand-blugeniearchiveps2.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.
