I am trying to use the update-tools cmd let and recieving the "The operation is not supported on the object". I have tried mutliple ways without success
1st attempt. Update-Tools -Guest (Get-VMGuest -VM (get-vm -name "vmname"))
2nd $vm = get-vm "vmname"
update-tools -vm $vm
What am I overlooking
T
I've had it work in some cases, and fail with the same error in others. I agree that this is a concern.
PS > get-vm foo | get-vmguest | Update-Tools
PS > Get-Task
Name State % Complete Start Time Finish Time
-
-
-
-
-
UpgradeTools_Task Success 100 09:56:20 AM 09:57:49 AM
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Does this initiate an upgrade ?
Get-VM <VMname> | Update-Tools
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I would say it initiates but, errors out.
get-stat returns
Name State % Complete Start Time Finish Time
-
-
-
-
-
UpgradeTools_Task Error 0 10:42:38 AM 10:42:38 AM
What version of ESX are you running it against?
This is running on 3.50 build 82663
Could you try this:
get-vm vmname | get-view | % { $_.UpgradeTools_task("") | get-viobjectbyviview | wait-task }
and see if you get the same failure? This is just to see if the failure is in the toolkit or on the ESX side.
Thanks.
Not sure what to say but, it is now running without issue. If the issue appears again I will run the command requested.
Thanks
Hi!
Can you please provide some additional info concerning your case:
- which is the guest OS windows?
- are you runnig the latest VI Toolkit (1.0, Update 1)?
- which version of VMTools/ESX are you trying to update to 3.50 build 82663?
Thanks in advance
Hi Folks,
For the life of me, I cannot get Update-Tools to work. I've tried every combination here, and I still get the same error. I don't konw if I'm over looking something simple or what. Here is what I am seeing:
PS C:\MyScripts> Get-VM vdbsweb | Update-Tools
Update-Tools : 3/9/2009 7:41:15 AM Update-Tools E38D85E6-3F78-4129-A3FC-EFA27F2ED1C4 Operation "Update VMware
Tools" failed for VM "vdbsweb" for the following reason: The operation for the entity vm-3429 failed with the following
message: "The operation is not supported on the object."
At line:1 char:30
+ Get-VM vdbsweb | Update-Tools <<<<
+ CategoryInfo : InvalidArgument: (vm-3429:String) , VimException
+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation
.VimAutomation.Commands.UpdateVmTools
Current versions of everything are:
ESX 3.5.0 Build 142961
VItoolkit - 1.5 Build 142961
PowerShell v2 CTP3
Any guidance would be greatly appreciated!!
Thanks,
- Bob
Any information on this? I'm seeing the same error, and have the same set up as rterra above.
Any thoughts out there?
this may happen if interaction is required...
Cheers, Rafael