|I made a bootable usb with windowsPE and a sysprepped image on it.|
I want to make a script that once the windowsPE is loaded, it will detect the new WD hard disk 150GB that i just plugged in to my computer, it will format it, create partition etc.. and assign a letter to it, and then i want to deploy and image on it (imagex /apply..).
How can i detect the new unformatted hard disk (if i have the size to detect or another "trick" to determine what is the new hard drive from the other drives..)
Its like i need to browse through all the harddrive (3 total), 2 are with data, and one is new from the shop, and i want to format and deploy and assign letter C to make it as my windows2008r2 server..
This is incase lets say my windows server hardisk is damaged and i want to reload it autmaticalliy with a pre made image file on a new drive i plug instead of the burned one :)
Thanks alot for answers !
everything is working fine(the bootable usb winPE and the image file), i just need to put all peices with a batch script code..