> For the complete documentation index, see [llms.txt](https://paul-gleason.gitbook.io/sec-480-adv-topics-in-cyber-security-devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paul-gleason.gitbook.io/sec-480-adv-topics-in-cyber-security-devops/labs/milestone-5.md).

# Milestone 5

## Milestone 5: 480-utils.psm1

### Setup Module:

Enter your git repo location

{% code overflow="wrap" %}

```bash
mkdir modules
cd modules
mkdir <Name>-utils
cd <Name>-utils
pswh
```

{% endcode %}

In powershell:

{% code overflow="wrap" %}

```powershell
New-ModuleManifest -Path .\<Name>.psd1 -Author 'Paul Gleason' -Company 'Company Here' -RootModule '<Name of Root Module>.psm1' -Description 'vsphere automation module for DevOps-480'
touch <Name>-utils.psm1
```

{% endcode %}

<figure><img src="https://3651363121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXRfFXlnajFLDrEaLTRkL%2Fuploads%2FH2M45Do1jhv3JelLDz22%2Fimage.png?alt=media&amp;token=e393c2f6-90db-406d-89fb-35a1b905ccb7" alt=""><figcaption><p>File Structure</p></figcaption></figure>

#### Edit Path:

```powershell
# Display current profile
$profile
# Change profile 
code $profile
```

Add lines below

```
$env:PSModulePath = $env:PSmodulePath + "<Location of Modules>"
```

Save and close editor and repon it

#### Import Module:

```
Import-Module '<module>' -Force
```

### My Module + Driver:

<https://github.com/ChampPG/Tech-Journals/tree/main/SEC-480>
