PS C:\Users\Ravi> C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1
Enter vCenter Server name: indvcenter01
Write-Host Name of Cluster: : cluster01
Name Port User
---- ---- ----
Indvcenter01 443 VCLASS\vcadmin
Get-VM : 06-Nov-15 5:26:39 AM Get-VM VM with name 'vcsa' was not found using the specified filter(s).
At C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1:30 char:34
+ Get-Cluster $ClusterName | Get-VM $_.name | Get-View | Select-O ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
Get-VM : 06-Nov-15 5:26:39 AM Get-VM VM with name 'winxp' was not found using the specified filter(s).
At C:\Users\Ravi\Desktop\VMtools-Script\Check-VMtools.ps1:30 char:34
+ Get-Cluster $ClusterName | Get-VM $_.name | Get-View | Select-O ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException
+ FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM