When I run the script I found below error message PS C:\Users\Ravi> C:\Users\Ravi\Desktop\Update Check-VMtools.ps1 Name Port User ---- ---- ---- Indvcenter01 443 VCLAS...
See more...
When I run the script I found below error message PS C:\Users\Ravi> C:\Users\Ravi\Desktop\Update Check-VMtools.ps1 Name Port User ---- ---- ---- Indvcenter01 443 VCLASS\vcadmin New-VIProperty : Parameter set cannot be resolved using the specified named parameters. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:20 char:1 + New-VIProperty -Name ToolsVersion -ObjectType VirtualMachine + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [New-VIProperty], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVIProperty -ValueFromExtensionProperty : The term '-ValueFromExtensionProperty' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:21 char:1 + -ValueFromExtensionProperty 'Config.tools.ToolsVersion' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (-ValueFromExtensionProperty:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException -Force : The term '-Force' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:22 char:1 + -Force > $Null + ~~~~~~ + CategoryInfo : ObjectNotFound: (-Force:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException New-VIProperty : Parameter set cannot be resolved using the specified named parameters. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:25 char:1 + New-VIProperty -Name ToolsVersionStatus -ObjectType VirtualMachine + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [New-VIProperty], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVIProperty -ValueFromExtensionProperty : The term '-ValueFromExtensionProperty' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:26 char:1 + -ValueFromExtensionProperty 'Guest.ToolsVersionStatus' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (-ValueFromExtensionProperty:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException -Force : The term '-Force' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:27 char:5 + -Force > $Null + ~~~~~~ + CategoryInfo : ObjectNotFound: (-Force:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'V' was not found using the specified filter(s). At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'C' was not found using the specified filter(s). At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'S' was not found using the specified filter(s). At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM Get-VM : 04-Nov-15 1:55:51 PM Get-VM VM with name 'A' was not found using the specified filter(s). At C:\Users\Ravi\Desktop\Update Check-VMtools.ps1:33 char:1 + Get-VM $vmname[$i]| Select Name, Version, ToolsVersion, ToolsVersionS ... + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-VM], VimException + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM