Imaging smallest SSD using SCCM- Multidisk machines

Hello friends

We all have multidisk machines in production and its really an issue when we need to image them using SCCM task sequence. There is quite a chance that you will stage image on wrong disk. In most cases we should have solution to cater these two requirements:

  1. If there is SSD disk in machine, image should be installed on that disk.
  2. In case of multiple SSD, image should be installed on smallest SSD.

The reason of wrong disk selection is because disk ID is not fixed in Windows. So how we can fix this? I have fixed it simply using small script and ran it as command line before formatting disk and applying image.

Here is script to select smallest SSD disk for imaging

PowerShell -ExecutionPolicy Bypass -Command “& { (New-Object -COMObject Microsoft.SMS.TSEnvironment).Value(‘OSDDiskIndex’) = Get-PhysicalDisk | Where MediaType -EQ ‘SSD’ | Sort-Object -Property Size | Select-Object -ExpandProperty DeviceID -First 1 }”

This is how step will look like:

Note: This step need to run before you initiate formatting and installation of image hence should be in very beginning of task sequence.
So this was all in this short blog. See you soon with some other technical information. Till then ta-ta.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s