OSD icon indicating copy to clipboard operation
OSD copied to clipboard

Option to Disable Clear-Disk in Start-OSDCloud for MDT

Open skalplaks opened this issue 10 months ago • 2 comments

Hello, I am deploying OSDCloud within an MDT environment and have followed the steps outlined on the OSDCloud site to update Windows ADK (OSDCloud ADK Integration). However, when placing the boot.wim in the "Install Operating System" step, I encounter an HDC Drivers disk error.

To work around this issue, I used the following command line instead: cmd.exe /c start /wait PowerShell -ExecutionPolicy Bypass -Command "Start-OSDCloud -OSLanguage fr-fr -OSName 'Windows 11 24H2 x64' -OSLicense Retail-OSEdition Pro -Zti" I also included an "empty" OS to retain the "computer name" phase within MDT. However, OSDCloud executes a Clear-Disk, which erases all MDT configurations, including the computer name and domain settings.

Request: Would it be possible to add an option like -NoDiskClean or -SkipClearDisk in Start-OSDCloud so that the disk is not erased before Windows installation?

Workarounds Tested:

Manually modifying the Clear-Disk function before running Start-OSDCloud, but this requires manual intervention.

Backing up/restoring MDT files, but this is not ideal in a production environment.

Injecting MDT settings directly into OSDCloud, which works partially but complicates automation.

An official option to prevent Clear-Disk would greatly help integrate OSDCloud into MDT without disrupting the usual workflow.

Thank you for your support!

skalplaks avatar Feb 14 '25 09:02 skalplaks

Can you please explain the HDC Drivers disk error? I'm not sure I follow.

Second, we will more than likely add a parameter to support this, otherwise there will be about 50 parameters needed.

Third, there will not be an "Official" solution as OSDCloud was not 100% intended for MDT, so I'm prepared to support OSDCloud functions when using OSDCloud, versus supporting OSDCloud functions when using MDT/CM.

Finally, OSDCloud uses a Global Variable for handling settings. Within this Global Variable are a few that handle Disk processing. I cannot advise this, and this is not supported (I cannot support the infinite ways that everyone want to image), and this may change at any time, although it hasn't for years. One of these variables will skip the Clear-Disk.

Image

I'm going to mark this as helpwanted but also wontfix as there will not be a parameter that allows this feature. I'm going to keep this Issue open so you can reply and recommend you share your solution with the community.

Thanks David

OSDeploy avatar Feb 14 '25 15:02 OSDeploy

As @OSDeploy has said, you can have it skip the formatting of the disk in OSDCloud I integrated OSDCloud into CM a long time ago, which works similar to MDT. I do my own format steps in the TS, then tell OSDCloud to skip it (Setting SkipAppDiskSteps = $true)

Image

gwblok avatar Feb 24 '25 20:02 gwblok