Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
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
To create a named OSDCloud Template, simply use the Name parameter
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
This function will return all the OSDCloud Templates that have been registered
This function will If you have more than one OSDCloud Template, you can change between OSDCloud Templates using this function and the Name parameter
By the way, there is Tab-Complete to make your life easier

PS C:\> Get-OSDCloudTemplate
C:\ProgramData\OSDCloud\Templates\My New ProfilePS C:\> Get-OSDCloudTemplateNames
default
My New ProfilePS 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

OSD 23.5.15.1+ Updated May 15, 2023
You can add additional languages to your WinPE by using the Language parameter. In my example, I used the ADK winpe.wim and added Spanish and French to my English US WinPE so I gave a Name that will help me identify the added languages
This parameter allows me to set the default keyboard to something else, like English (US) Dvorak
Finally, I can change all the International Defaults to one of the added Languages using this parameter. This will make the following changes
UI language
System locale
User locale
Input locale



OSD 23.5.15.1+ Updated May 15, 2023
Just a quick note, every time you make a new OSDCloud Template, ISO's are automatically generated for you to test with right away and located in the root of the OSDCloud Template
OSDCloud_NoPrompt.iso will skip this message below and boot straight to WinPE


OSD 23.5.15.1+ Updated May 15, 2023
I really enjoy having Microsoft DaRT in my WinPE so I can use Explorer, but I also share out my ISO's sometimes and I can't really do that as Microsoft DaRT is licensed. The way I get around this is by adding the word 'Public' in the Name and DaRT won't be added. This makes it easy to share out some of my work and not forgetting about breaking the Microsoft rules


OSD 23.5.15.1+ Updated May 15, 2023
I've added the ability to apply a Cumulative Update to an OSDCloud Template due to the Secure Boot vulnerability. The next two links give some details on the issue
Start by downloading the update from Microsoft Update Catalog and specifying the path to the downloaded update. Start by downloading the x64 version at this link if you are using the ADK for Windows 11 version 22H2
Once you have the update downloaded, use the CumulativeUpdate parameter and supply the Path to the downloaded MSU. In the example below I applied this in my default OSDCloud Template as this will be the one I use the most
Cumulative Update is applied
Updated Windows Information is displayed
Boot files are updated
DISM Component Cleanup is run
It's absolutely possible to apply the wrong Cumulative Update for WinPE, so make sure you understand that the Cumulative Update that you download must match your ADK. So if you are using the ADK for Windows 11 version 22H2, you need the Windows 11 22H2 x64 Cumulative Update
Cumulative Update is applied
Updated Windows Information is displayed. In this case, the UBR did not change
Warning is displayed that the UBR has not been changed. The Boot files will not be updated
DISM Component Cleanup is run
I'm not properly staffed to answer individual questions about which Cumulative Update you need for the ADK you have installed. If this is not something you can resolve on your own, then you should probably wait for updated Media from Microsoft that already has the Secure Boot updates applied
If you are interested in reviewing how this works, here is a snipped from the New-OSDCloudTemplate function
OSD 23.5.15.1+ Updated May 15, 2023
In addition to using the winpe.wim that is in the ADK, you can also create an OSDCloud Template using WinRE
To do this, use the WinRE parameter. The benefit of using WinRE is you gain Wireless support. One thing you need to remember is that the ADK you are using needs to match your running OS, so if your OS is Windows 11 22H2, you need to use the ADK for Windows 11 22H2. Finally, make sure you use the Name parameter to keep things tidy
In my example below, you can see the WinPE-WiFi Packages that come with WinRE
OSD 23.5.16.2+ Updated May 18, 2023
The default OSDCloud Template exists at C:\ProgramData\OSDCloud. You can create one here using the following command
Once you run this command, an OSDCloud Template will be created from the Windows ADK, there's really nothing to it. If you want to learn more, go through the next few pages
New-OSDCloudTemplate




OSDCloud Template contains a Universal WinPE that can be used with Microsoft Deployment Toolkit and Configuration Manager
If you were to boot the OSDCloud Template, you will see it looks virtually identical to the ADK WinPE
wgl4_boot.ttf is applied to Media to fix bad display resolution in WinPE UEFI
.\Media\boot\fonts\wgl4_boot.ttf
.\Media\efi\microsoft\boot\fonts\wgl4_boot.ttf
ADK Packages are installed for .NET and PowerShell support
Curl.exe is added to $MountPath\Windows\System32
Setx.exe is added to $MountPath\Windows\System32
WinPE PowerShell Execution Policy is set to Bypass
PowerShell Gallery support is added
System Variables are added for APPDATA and LOCALAPPDATA
PackageManagement
PowerShellGet
Microsoft DaRT is added to WinPE from C:\Program Files\Microsoft DaRT\v10\Toolsx64.cab
WinPE winpeshl.ini is removed
Microsoft DaRT Config is added from C:\Program Files\Microsoft Deployment Toolkit\Templates\DartConfig8.dat
Console Registry Changes are applied to mounted Registry (ForceV2, Buffers)
On Screen Keyboard
As you can see, nothing OSD, OSDCloud, or OSDeploy has been added to the boot.wim. This can easily be copied back into ADK for MDT or Config Manager (make a backup of you ADK winpe.wim)
Requires "C:\Program Files\Microsoft DaRT\v10\Toolsx64.cab" and "C:\Program Files\Microsoft Deployment Toolkit\Templates\DartConfig8.dat"




OSD 23.5.15.1+ Updated May 15, 2023
The next few screenshots will detail the steps that are needed to make OSDCloud work
Start writing the PowerShell Transcript
Mirror the ADK Media directory to the OSDCloud Template
Copy the ADK winpe.wim to the OSDCloud Template boot.wim
Mount the boot.wim
Mount the WinPE registry to get the WinPE Info
Inject ADK Packages for PowerShell functionality
Save the Windows Image
Copy some helper files from the running OS
If MDT is installed, add the Dart Configuration
If Microsoft Dart is installed, inject the Tools
Save the Windows Image
Display the installed Windows Packages
Dismount the Windows Image
Export the Boot.wim to compress the file
Create empty configuration directories
Create the ISOs
Set the WinPE PowerShell ExecutionPolicy
Enable PowerShell Gallery support
Remove winpeshl.ini if it is present
Change some settings for a better Command Prompt experience
Set the OSDCloud Template to the new path
Stop writing the PowerShell Transcript




