Open TheColonel2688 opened 3 years ago
What you're seeing is correct. The underscore character '_' is used as a placeholder sectionname when there is no section, or the lines are before the first section. You can see in the Value array that the lines have indeed been read.
If you want to get the value of a line you can do it like this:
$file["_"]["scsi0.virtualDev"]
This would return the value lsisas1068.
I am trying to read a Vmware .vmx file (Version 16 hardware)
So far no luck
here are the first few lines
When I do a
Write-Host ($file | Out-String)
I get thisIs the issue that .vmx files don't have sections?