Am trying to create a Diskpart answer file, below is the script I use. It divided into 2 functions. GET-DISKPARTINFO & INVOKE-EDriveConfig.
GET-DISKPARTINFO works fine and am able to get all the info but the problem is on the function INVOKE-EDriveConfig.
$drivelist & all the $_ do not have any value. Can you help and let me what I am doing wrong.
The final result generated the bootemup.txt but its missing the disk number & dont look like the IF conduction is also working cause there is no value in $_Status and it would always return false.
Could you please help !!