SCCM WINPE Task Sequence Randomly Assigns Drive Letter

Want to hear your thoughts on my approach here:  We have sporadic issues where a person will be imaging and it will error out on Apply Operating System and the reason being is the BootDrive Partition get the letter c: and OSDISK gets letter d: but usually after a re-attempt this usually resolve... I believe this is because after a reboot WINPE just assigns first drive letter and so on.  I am trying to prevent this.  (Task Sequence below) - Possible Script to resolve this issue below that... What are your thoughts?

<# Get Partitions and set Drive Letters Properly, then Create Variable SCCM Tast Sequence Variable #>
$Volume = get-volume
$VolumeCheck = get-volume
FOREACH ($Drive in $Volume){
$Label = $Drive.FileSystemLabel
$DriveLetter = $Drive.DriveLetter

IF ($Label -eq "Windows" -AND $DriveLetter -ne "C"){

	#check to see if C is in use
	FOREACH ($DriveCheck in $VolumeCheck){
	$LabelCheck = $DriveCheck.FileSystemLabel
	$DriveLetterCheck = $DriveCheck.DriveLetter
	if($DriveLetterCheck -like "C"){
	#Change whatever was used by C to E
	set-partition -DriveLetter C -NewDriveLetter T
	}
	}
	#Set Windows to C
	set-partition -DriveLetter $DriveLetter -NewDriveLetter C
}
}

August 19th, 2015 1:19pm

Hi,

Please see the following blog about methods for driver letter assignment in Task Sequence.

How to Ensure that Windows Installs on C: During a System Center 2012 Configuration Manager OSD Task Sequence

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 3:57am

Hi,

Have you checked smsts.log? When the task sequence failed?

Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 11:10pm

Hi,

Have you checked smsts.log? When the task sequence failed?

August 25th, 2015 3:08am

Hi,

Have you checked smsts.log? When the task sequence failed?

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 3:08am

I Moved Format after TPM activation so winpe does not reboot and this seems to have resolved the issue.
  • Marked as answer by cfreeman21 18 hours 31 minutes ago
September 4th, 2015 9:24am

I Moved Format after TPM activation so winpe does not reboot and this seems to have resolved the issue.
  • Marked as answer by cfreeman21 Friday, September 04, 2015 1:22 PM
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 1:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics