Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: Need a script to check VMtools are updated, its only for selected server

$
0
0

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

 

 

 


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>