Named Templates

OSD 23.5.15.1+ Updated May 15, 2023

There may come a time when you need to create multiple OSDCloud Templates. I'll get into this further in the next few pages, but let's cover the basics here

-Name

To create a named OSDCloud Template, simply use the Name parameter

Get-OSDCloudTemplate

When you create a new OSDCloud Template, that will be the one that gets used by default going forward, until it is changed. To find out what your current OSDCloud Template is, use this function

PS C:\> Get-OSDCloudTemplate
C:\ProgramData\OSDCloud\Templates\My New Profile

Get-OSDCloudTemplateNames

This function will return all the OSDCloud Templates that have been registered

PS C:\> Get-OSDCloudTemplateNames
default
My New Profile

Set-OSDCloudTemplate

This function will If you have more than one OSDCloud Template, you can change between OSDCloud Templates using this function and the Name parameter

PS C:\> Set-OSDCloudTemplate #without params, returns to default
C:\ProgramData\OSDCloud

PS C:\> Set-OSDCloudTemplate -Name 'My New Profile'
C:\ProgramData\OSDCloud\Templates\My New Profile

PS C:\> Set-OSDCloudTemplate -Name default
C:\ProgramData\OSDCloud

By the way, there is Tab-Complete to make your life easier

Last updated