Thank-You for script assistance.
I attempted to recreate the script to answer my needs of outputting: VMName, VMHost(IP), PowerState, GuestOS/runningOS) from my vSphere environment. The script works with no errors.
However it fails on two points, "It did not filter for Windows or Linux" and "It did not provide the Guest OS name; Windows Server or Ubuntu" It shows False/True ----
Why??? What did I Miss ???
Get-VM | Select @{Label = "VM Name" ; Expression = {$_.Name} },VMHost, PowerState, @{Label = "Guest OS" ; Expression = {$_.ExtensionData.Summary.Config.GuestFullName -like "*Windows*"} }|
Export-CSV -Path 'C:\users\username\documents\VMPowerOS.csv' -NoTypeInformation