# Installation

## PowerShell Gallery <a href="#powershell-gallery" id="powershell-gallery"></a>

**OSDBuilder** is a PowerShell Module that is published in the [**PowerShell Gallery**](https://www.powershellgallery.com/)**​**

**​**[**https://www.powershellgallery.com/packages/OSDBuilder**](https://www.powershellgallery.com/packages/OSDBuilder)**​**

**After installing OSDBuilder, you should close all open PowerShell sessions to ensure that the Module is fully loaded**

## Clean Install <a href="#clean-install" id="clean-install"></a>

If you don't have an existing version of **OSDBuilder** installed, you can simply Install and Import OSBuilder with the following **PowerShell** commands

```
Install-Module -Name OSDBuilder -Force
Import-Module -Name OSDBuilder -Force
```

## Upgrade from OSBuilder <a href="#upgrade-from-osbuilder" id="upgrade-from-osbuilder"></a>

**OSDBuilder** is a completely separate PowerShell Module from **OSBuilder**, and it shares the same function names. These two Modules cannot coexist, and **OSBuilder** should be removed before installing **OSDBuilder**

```
Uninstall-Module OSBuilder -AllVersions -Force
Install-Module OSDBuilder -Force
Import-Module OSDBuilder -Force
```

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-L_hAmuJLeZLNiYr730U%2F-L_hYYbobzAXGfi2vRr-%2Fimage.png?alt=media\&token=b153c1eb-6ce5-461b-b906-c0a1d86fc2a6)

## Update to Latest Version <a href="#update-to-latest-version" id="update-to-latest-version"></a>

If you have an existing version of **OSBuilder**, you can easily do this with the following PowerShell Command

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-L_hAmuJLeZLNiYr730U%2F-L_hYrlUdgnW6ctWgd71%2Fimage.png?alt=media\&token=b26e2892-ed6c-4072-8392-c34175c2bc2e)
