# 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&#x26;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>
