Hi everyone. I'm struggling to find my way round this one, but I'm postitive there's a solution for it.
Consider this configuration:
- Configmgr current release (1802)
- Task sequence ISO transferred to destination hyper-V server (on separate network from configmgr infrastructure)
- Three separate vhdx files created and added to a new VM.
- ISO attached to VM (in position 3 on the SCSI config for the VM)
- dynamic memory, 2048 startup, 4 cores
- Task sequence is for server 2016. Set to format all the disks with NTFS, 100% usage.
When I create the VM, it creates the C: fine, formats it, chucks on the OS and puts the DVD (iso) on the d: drive. On inspection, the other drives have been formatted correctly but marked as offline.
From hunting the interwebs, I see that the vhdx files are marked as offline due to the san policy, so via DISKPART I'm running:
san policy=onlineall
select disk 1
attributes disk clear readonly noerr
online disk noerr
select disk 2
attributes disk clear readonly noerr
online disk noerr
That runs fine, and brings all the drives online to E: and F:, with the DVD on D: .... Winner. However, (due to reasons) I need the disks to be on d: and e:, with the DVD on F: There's a large number of steps which are run within this TS that require the right disks to be in the right place, so I can't wait until after the end of the TS to just move them about.
This is obviously tricky, as this will involve moving the task sequence media during the build. I've tried moving the sequence of the diskpart section before and after the Setup Windows step but to no avail yet - it keeps putting it on the D:
Any clever ideas anyone?