If you have a large datacenter having too many VMs, you may find it difficult to filter the VMs, using the super powerful tool vSphere PowerCLI you can get the VM with filters
To get the VM where the tool is not installed, run the below script after connecting with VI-Server
Get-VM -name windows-* | ?{$_.extensiondata.guest.toolsstatus -eq 'toolsNotInstalled'}
Also published on Medium.