Template
New-OSDCloud.template
New-OSDCloud.template requires Admin Rights
For OSDCloud to work, you need to create a WinPE Boot Image with a few minor adjustments. These changes relate to getting PowerShell Gallery working, and adding some supporting files like Curl and Wireless support (WinRE). Additionally, ADK packages are installed to make PowerShell work. The OSDCloud Template is saved in the following path
1
$env:ProgramData\OSDCloud
Copied!
Once the Template is created, it can be used to make multiple Workspaces where you can do your OSDCloud customizations. Finally, when complete, the Template creates what I call a Universal WinPE that can be used for Microsoft Deployment and Configuration Manager

Microsoft DaRT

If you have Microsoft DaRT and Microsoft Deployment Toolkit installed, then Microsoft DaRT will automatically be added to your WinPE when you create your OSDCloud Template

Wireless Support

You have a decision to make at this point, you can either choose to make your OSDCloud support Wireless Networking or not

No Wireless

The default OSDCloud Template uses WinPE from the installed ADK. This WinPE does not contain WiFi functionality, but it is quicker and easier to implement. If your installed ADK does not match your running Operating System (i.e. Windows 10 with Windows 11 ADK), then you need to choose this method. If you are ready to begin without Wireless support, then go ahead and run this command
1
New-OSDCloud.template
Copied!

Wireless

For Wireless to work in WinPE, you need to be running Windows 10. Windows 11 has issues booting at the moment, so I can't recommend that.
Additionally, your installed ADK must be the version that supports your running Operating System. So if you are running Windows 10 1909, you need to have ADK 10 1903 installed. Windows 10 21H1 needs ADK 10 2004. Got it? If so, then get started with this command
1
New-OSDCloud.template -WinRE
Copied!

Console Output (Windows 10)

Console Output (Windows 11)

1
PS C:\> New-OSDCloud.template
2
================================================
3
2021-10-31-000206 New-OSDCloud.template
4
================================================
5
2021-10-31-000206 Creating OSDCloud Template at C:\ProgramData\OSDCloud
6
2021-10-31-000206 Creating OSDCloud Template Logs at C:\ProgramData\OSDCloud\Logs\Template
7
Transcript started, output file is C:\ProgramData\OSDCloud\Logs\Template\2021-10-31-000206-New-OSDCloud.template.log
8
================================================
9
2021-10-31-000206 Mirroring ADK Media using Robocopy
10
Mirroring will remove any previous WinPE and will force a full rebuild
11
Source: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\Media
12
Destination: C:\ProgramData\OSDCloud\Media
13
================================================
14
2021-10-31-000207 Copying ADK WinPE.wim
15
Source: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\en-us\winpe.wim
16
17
Destination: C:\ProgramData\OSDCloud\Media\sources\boot.wim
18
================================================
19
2021-10-31-000207 Mount Boot.wim
20
OSD Function: Mount-MyWindowsImage
21
MountPath: C:\Users\SeguraOSD\AppData\Local\Temp\Mount690414386
22
================================================
23
2021-10-31-000226 Adding default en-US ADK Packages
24
Dism Function: Add-WindowsPackage
25
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-WMI.cab
26
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-HTA.cab
27
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-NetFx.cab
28
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-Scripting.cab
29
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-PowerShell.cab
30
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-SecureStartup.cab
31
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-DismCmdlets.cab
32
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-Dot3Svc.cab
33
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-EnhancedStorage.cab
34
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-FMAPI.cab
35
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-GamingPeripherals.cab
36
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-PPPoE.cab
37
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-PlatformId.cab
38
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-PmemCmdlets.cab
39
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-RNDIS.cab
40
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-SecureBootCmdlets.cab
41
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-StorageWMI.cab
42
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\WinPE-WDS-Tools.cab
43
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\lp.cab
44
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-WMI_en-us.cab
45
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-HTA_en-us.cab
46
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-NetFx_en-us.cab
47
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-Scripting_en-us.cab
48
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-PowerShell_en-us.cab
49
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-SecureStartup_en-us.cab
50
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-DismCmdlets_en-us.cab
51
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-Dot3Svc_en-us.cab
52
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-EnhancedStorage_en-us.cab
53
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-PPPoE_en-us.cab
54
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-PmemCmdlets_en-us.cab
55
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-RNDIS_en-us.cab
56
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-StorageWMI_en-us.cab
57
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\AMD64\WinPE_OCs\en-us\WinPE-WDS-Tools_en-us.cab
58
================================================
59
2021-10-31-000509 Save Windows Image
60
Dism Function: Save-WindowsImage
61
================================================
62
2021-10-31-000639 WinPE Additional Files
63
cURL is required for downloading files in WinPE
64
C:\WINDOWS\System32\curl.exe
65
Setx is required for setting System Variables
66
C:\WINDOWS\System32\setx.exe
67
MSInfo32 is helpful for verifying Hardware in WinPE
68
C:\WINDOWS\System32\msinfo32.exe
69
C:\WINDOWS\System32\*\msinfo32.exe.mui
70
OSK adds WinPE On Screen Keyboard
71
C:\WINDOWS\System32\osk.exe
72
C:\WINDOWS\System32\osksupport.dll
73
================================================
74
2021-10-31-000640 Microsoft DaRT
75
C:\Program Files\Microsoft DaRT\v10\Toolsx64.cab
76
C:\Program Files\Microsoft Deployment Toolkit\Templates\DartConfig8.dat
77
================================================
78
2021-10-31-000641 Save Windows Image
79
Dism Function: Save-WindowsImage
80
================================================
81
2021-10-31-000658 Set WinPE PowerShell ExecutionPolicy to Bypass
82
OSD Function: Set-WindowsImageExecutionPolicy
83
================================================
84
2021-10-31-000659 Enable WinPE PowerShell Gallery
85
OSD Function: Enable-PEWindowsImagePSGallery
86
================================================
87
2021-10-31-000718 Removing WinRE C:\Users\SeguraOSD\AppData\Local\Temp\Mount690414386\Windows\System32\winpeshl.ini
88
This file is present when using WinRE.wim and needs to be removed for WinPE compatibility
89
================================================
90
2021-10-31-000718 Modifying WinPE CMD and PowerShell Console settings
91
This increases the buffer and sets the window metrics and default fonts
92
Invoke-Exe 'reg' Arguments 'load HKLM\Default C:\Users\SeguraOSD\AppData\Local\Temp\Mount690414386\Windows\System32\Config\DEFAULT'
93
The operation completed successfully.
94
Invoke-Exe 'reg' Arguments 'import C:\Users\SEGURA~1\AppData\Local\Temp\RegistryConsole.reg'
95
Invoke-Exe 'reg' Arguments 'unload HKLM\Default'
96
The operation completed successfully.
97
================================================
98
2021-10-31-000718 Dismounting and Saving Windows Image
99
OSD Function: Dismount-MyWindowsImage
100
================================================
101
2021-10-31-000750 Create Config Directories
102
================================================
103
2021-10-31-000750 New-OSDCloud.template Completed in 05 minutes 44 seconds
104
OSDCloud Template created at C:\ProgramData\OSDCloud
105
================================================
106
Transcript stopped, output file is C:\ProgramData\OSDCloud\Logs\Template\2021-10-31-000206-New-OSDCloud.template.log
Copied!

Reference

Sponsor

Home
Recast Software
OSDCloud is sponsored by Recast Software
Last modified 2mo ago