You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2020. It is now read-only.
### If the file name ends with 'wim', or it has more than one image, then it's a WIM
31
+
### If the file name ends with 'wim', or it has more than one image, then it's a WIM
32
32
if ($Image.Count-gt1-or ($Path-match'wim$'-and ($Image.ImageName.Length-ge1))) {
33
33
Write-Verbose-Message 'This image appears to be a valid Windows Image Format (WIM) file.'
34
34
return [ImageType]::WIM
@@ -39,15 +39,11 @@ function GetImageType {
39
39
Write-Verbose-Message 'This image appears to be a valid Virtual Hard Drive (VHDX) file.'
40
40
return [ImageType]::VHDX
41
41
}
42
-
### If the file has a .vmdk extension it is probably a VMDK
43
-
if ($Image.Count-ge1-and$Path-match'vmdk$') {
44
-
Write-Verbose-Message 'This image appears to be a valid Virtual Machine Disk (VMDK) file. \n If you have the Microsoft Virtual Machine Converter 3.0 installed, we will attempt to convert it. This will take awhile.'
45
-
return [ImageType]::VMDK
46
-
}
42
+
47
43
return [ImageType]::Unknown
48
44
}
49
45
catch {
50
46
Write-Error-Message ('Error occurred while attempting to inspect the image file. {0}'-f$PSItem.Exception.Message)
0 commit comments