Hello:
I am attempting to create a VHDX drive in which I can execute Windows 8.1. I am using version "10.0.14278.1000.amd64fre.rs1_es_media.160201-1707" of Convert-WindowsImage. The calling sequence I am using for Convert-WindowsImage is as follows:
E:
CD "Temp Files\Temps - U1"
. .\Convert-WindowsImage.ps1
$ConvertWindowsImageParam = @{
SourcePath = "Windows 8.1 Enterprise.ISO"
VHD = "V:\Windows 8.1 Bootable.VHDX"
IsFixed = $True
DiskLayout = "UEFI"
Edition = "Enterprise"
Verbose = $True
VHDFormat = "VHDX"
EnableDebugger = "None"
}
$VHDx = Convert-WindowsImage @ConvertWindowsImageParam
The error I receive is:
VERBOSE: Target Image Version 10.0.18363.900
ERROR : Cannot add type. Compilation errors occurred.
INFO : Log folder is C:\Users\THEOLD~1\AppData\Local\Temp\Convert-WindowsImage\3dd204dc-d0f7-4bb6-bfb7-6c0119bf4d62
INFO : Done.
PS E:\Temp Files\Temps - U1>
The Log File includes:
PSVersion: 7.0.2
PSEdition: Core
GitCommitId: 7.0.2
OS: Microsoft Windows 10.0.18363
Platform: Win32NT
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.2
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0
**********************
PS>TerminatingError(Add-Type): "Cannot add type. Compilation errors occurred."
>> TerminatingError(Add-Type): "Cannot add type. Compilation errors occurred."
ERROR : Cannot add type. Compilation errors occurred.
INFO : Log folder is C:\Users\THEOLD~1\AppData\Local\Temp\Convert-WindowsImage\3dd204dc-d0f7-4bb6-bfb7-6c0119bf4d62
INFO : Done.
**********************
PowerShell transcript end
End time: 20200717173206
**********************
I would appreciate any advice that anyone can give me to find this error.
Sparky