In the downloaded files, some scripts need to be run to connect to multiple vCenters, but it is possible to do
-------------------------------------------
Original Message:
Sent: Sep 19, 2025 09:16 AM
From: ChrisLeblanc
Subject: Powercli output
You may need to look at the output directly without the CSV part to see what really is going on.
I added one option I use to your code. Select unique ones based on the VMName
Get-VM | Get-VMGuest | where-object {$_.State -eq 'Running' -and $_.OSFullName -Like '*Windows*'} | Sort-Object -Property VMName -Unique | Select VmName, ToolsVersion, OSFullName | export-csv D:\Scripts\VM\VMTools\VMwareToolsVersionWindows_oh.csv