I spoke too soon. Now I'm getting this (below).
First, make sure this is a real vm (which works):
> get-vm 'taw2k8r2v070'
Name PowerState Num CPUs MemoryGB
---- ---------- -------- --------
taw2k8r2v070 PoweredOn 3 16.000
Then try doing a “wait-tools” during a restart (and this breaks):
> wait-tools -vm (get-vm 'taw2k8r2v070')
wait-tools : 8/12/2013 16:23:55 Wait-Tools Object reference not set to an instance of an object.
At line:1 char:1
+ wait-tools -vm (get-vm 'taw2k8r2v070')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Wait-Tools], ViError
+ FullyQualifiedErrorId : Client20_ClientSideTaskImpl_ThreadProc_UnhandledException,VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTools
Here is my system info
My info:
> Get-PowerCLIVersion
PowerCLI Version
----------------
VMware vSphere PowerCLI 5.1 Release 2 build 1012425
---------------
Snapin Versions
---------------
VMWare AutoDeploy PowerCLI Component 5.1 build 768137
VMWare ImageBuilder PowerCLI Component 5.1 build 768137
VMware vCloud Director PowerCLI Component 5.1 build 1012427
VMware License PowerCLI Component 5.1 build 669840
VMware VDS PowerCLI Component 5.1 build 1012428
VMware vSphere PowerCLI Component 5.1 build 1012428
> Get-OSVersion -detail
SystemDirectory : C:\Windows\system32
Organization :
BuildNumber : 7601
RegisteredUser : admin
SerialNumber : <yadda>
Version : 6.1.7601
> Get-WmiObject -Class Win32_Product -filter "Vendor='VMware, Inc.'"
IdentifyingNumber : {B585CE83-0A65-47B2-B8DE-0EE2F9667EE1}
Name : VMware vCenter Update Manager Client 4.1
Vendor : VMware, Inc.
Version : 4.1.0.5142
Caption : VMware vCenter Update Manager Client 4.1
IdentifyingNumber : {988E18B4-193B-4F56-B36C-F387F81F6AF7}
Name : VMware vSphere Update Manager Client 5.1
Vendor : VMware, Inc.
Version : 5.1.0.13071
Caption : VMware vSphere Update Manager Client 5.1
IdentifyingNumber : {153F0080-400E-47D6-8277-1BB1392E224A}
Name : VMware vCenter Converter Client 4.2
Vendor : VMware, Inc.
Version : 4.2.0.254483
Caption : VMware vCenter Converter Client 4.2
IdentifyingNumber : {78463C65-E66D-4F0F-9527-9810B4CE8FC9}
Name : VMware Client Integration Plug-in 5.1.0
Vendor : VMware, Inc.
Version : 5.1.0.837136
Caption : VMware Client Integration Plug-in 5.1.0
IdentifyingNumber : {EDF0C1D5-D980-48F9-BA19-0ECEDEF8C5D4}
Name : VMware vCenter Converter Standalone
Vendor : VMware, Inc.
Version : 5.0.1.875114
Caption : VMware vCenter Converter Standalone
IdentifyingNumber : {AE0F62A7-A1A2-407F-9F4C-48939BD9AD8D}
Name : tools-winPre2k
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-winPre2k
IdentifyingNumber : {197597A7-AD33-4898-9D8E-73066818B464}
Name : tools-netware
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-netware
IdentifyingNumber : {F99FC179-EA67-4BBC-8955-BDDA0CB94B88}
Name : VMware VIX
Vendor : VMware, Inc.
Version : 1.12.2.35902
Caption : VMware VIX
IdentifyingNumber : {D102611A-6466-4101-A51D-51069303AC65}
Name : tools-linux
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-linux
IdentifyingNumber : {B2F8A91A-185A-4861-AB8F-332637BE7B6C}
Name : VMware vSphere PowerCLI
Vendor : VMware, Inc.
Version : 5.1.0.5375
Caption : VMware vSphere PowerCLI
IdentifyingNumber : {7B94AC2A-E950-4B0A-900E-A479A454A74E}
Name : VmciSockets
Vendor : VMware, Inc.
Version : 9.1.55.1
Caption : VmciSockets
IdentifyingNumber : {0D94F75A-0EA6-4951-B3AF-B145FA9E05C6}
Name : VMware Workstation
Vendor : VMware, Inc.
Version : 8.0.5.33341
Caption : VMware Workstation
IdentifyingNumber : {09DC364B-A77A-49A0-972B-E43F0DACC5E3}
Name : VMware vSphere Client 5.1
Vendor : VMware, Inc.
Version : 5.1.0.1767
Caption : VMware vSphere Client 5.1
IdentifyingNumber : {AB1C87CB-1807-4CF0-B4C2-CEE14C18CDB4}
Name : tools-solaris
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-solaris
IdentifyingNumber : {FFD9383C-01D5-4897-A954-43AF599AED30}
Name : tools-windows
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-windows
IdentifyingNumber : {003BFBBD-6C67-419E-A24D-0DCAFC3A5249}
Name : tools-freebsd
Vendor : VMware, Inc.
Version : 8.8.5.893925
Caption : tools-freebsd