HI All,
when i try execute the Command on PowerCLI for count the total linux /windows VM ,it's throw error ,please if any Kown how to fix the issue ,please share it.
Below are error Msg:
PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> (Get-VMguest * | Where-Object {$_.OSFullName -like "*Linux*" }).Count | out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
Get-VMGuest : 12/26/2013 12:21:02 PM Get-VMGuest The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:13
+ (Get-VMguest <<<< * | Where-Object {$_.OSFullName -like "*Linux*" }).Count |
out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
+ CategoryInfo : NotSpecified: (:) [Get-VMGuest], ViError
+ FullyQualifiedErrorId : Client20_QueryServiceImpl_RetrievePropertiesEx_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuest
Get-VMGuest : 12/26/2013 12:21:02 PM Get-VMGuest Value cannot be found for the mandatory parameter VM
At line:1 char:13
+ (Get-VMguest <<<< * | Where-Object {$_.OSFullName -like "*Linux*" }).Count |
out-File C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
+ CategoryInfo : NotSpecified: (:) [Get-VMGuest], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.GetVmGuest
PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI>
Thanks
Murali J