Hi,
I am creating an automated Windows installer using WIM images. I've got most of it covered execpt for converting a parition object into a drive letter. I took a look at this code:
$oWMISvc = ObjGet("winmgmts:\\" & @ComputerName & "\root\cimv2")
$colDiskDrives = $oWMISvc.ExecQuery("SELECT * FROM Win32_DiskDrive")
For $oDiskDrive In $colDiskDrives
ConsoleWrite("DiskDrive = " & $oDiskDrive.DeviceId & " Caption = " & $oDiskDrive.Caption & @LF)
$sQuery = "ASSOCIATORS