Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1680

Add VHD to @drivetype

$
0
0
When I use @drivetype against a vhd drive, it returns;
Code:
e:\utils>echo %@drivetype[g:]
3

Please allow @drivetype to return if a drive is a vhd drive.

PowerShell can determine the drive letter for a mounted vhd;
Code:
PS E:\utils> get-diskimage E:\Optiplex9601\19eccd9d-ac2a-11e6-91e6-806e6f6e6963.vhd | get-disk | get-partition

   DiskPath:
\\?\scsi#disk&ven_msft&prod_virtual_disk#2&1f4adffe&0&000003#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}

PartitionNumber  DriveLetter...

Read more

Viewing all articles
Browse latest Browse all 1680

Trending Articles