lscpu | grep -i Virtualization
VT-x
for IntelAMD-Vi
for AMD
function Get-MsiProductVersion { | |
param($path) | |
$msiOpenDatabaseModeReadOnly = 0 | |
$Installer = New-Object -ComObject WindowsInstaller.Installer | |
$Database = Invoke-Method $Installer OpenDatabase @($path, $msiOpenDatabaseModeReadOnly) -ErrorAction SilentlyContinue | |
if ($null -ne $Database) { | |
$View = Invoke-Method $Database OpenView @("SELECT Value FROM Property WHERE Property='ProductVersion'") | |
Invoke-Method $View Execute | Out-Null | |
$Record = Invoke-Method $View Fetch | |
if ($Record) { |