Hi,
I want to have a very first in TS as hard drive clean and partitioning it. so once WinPE is downloaded, system reboots, it will check 'IsLaptop' or 'IsDesktop' condition and if its Laptop, it should clean the disk 0 and parition it. I have tried to achieve this but i am getting an error. Its a MDT based TS in Configuration manager 2012 R2 (MDT 2013 is integrated). Laptops are encrypted and just need to be wiped and reload without databackup. I feel this is the easiest way to have dispart clean the disk, recreate partition based on condition if its laptop.
Steps i am doing is :
1. diskpart. exe /s diskpart.txt - first step in TS, and has condition to run only if 'IsLaptop equals True'. I have created package for diskpart.txt ( i am wondering if this could be an issue, if it tries to download the package on hdd and hdd doesn't have partition yet)
2. set imageosver to 6.1 - since its for windows 7
3. Format and partition disk 6.1 - will format and create 2 partitions 'OS disk' and 'BDE'
then other steps starts like Use toolkit package, gather and UDI wizard.