Hi,
I think my issue the same as TS issue, but error message is a little different.
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\automation> Get-VM -Name "g11n-clnt-frn"
Name PowerState Num CPUs MemoryGB
---- ---------- -------- --------
g11n-clnt-frn PoweredOff 1 3.000
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\automation> set-vm "g11n-clnt-frn" -MemoryGB 2
Confirmation
Proceed to configure the following parameters of the virtual machine with name 'g11n-clnt-frn'?
New MemoryMB: 2048MB
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
set-vm : 4/9/2013 2:56:22 PM Set-VM Cannot find the environment browser for VMHost with Id:
'HostSystem-host-1324'.
At line:1 char:1
+ set-vm "g11n-clnt-frn" -MemoryGB 2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (HostSystem-host-1324:String) [Set-VM], ViError
+ FullyQualifiedErrorId : Client20_VmHostServiceImpl_TryGetHostEnvironmentBrowser_EnvironmentBrowserNotFound,VMwar
e.VimAutomation.ViCore.Cmdlets.Commands.SetVM
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\automation> $lastError = $error[0]
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\automation> $lastError | select *
writeErrorStream : True
PSMessageDetails :
Exception : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.ViError: 4/9/2013 2:56:22 PM
Set-VM Cannot find the environment browser for VMHost with Id: 'HostSystem-host-1324'.
at VMware.VimAutomation.ViCore.Impl.V1.Service.ComputeResourceServiceImpl.TryGetHostEnvironm
entBrowser(String hostId)
at VMware.VimAutomation.ViCore.Impl.V1.Service.ComputeResourceServiceImpl.TryGetViNetHostCon
figTarget(String hostId)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.UpdateVM(VirtualMachineImpl
vm, String name, String description, Nullable`1 memorySize, Nullable`1 cpuCount, String
guestId, String alternateGuestName, OSCustomizationSpecImpl customization, Boolean
allowNested, Boolean isRequestedAsync, Nullable`1 haRestartPriority, Nullable`1
haIsolationResponse, Nullable`1 drsAutomationLevel, Boolean toTemplate, Nullable`1
vmSwapfilePolicy, Nullable`1 version)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VmServiceImpl.UpdateVM(VirtualMachineInterop
vm, String name, String description, Nullable`1 memorySize, Nullable`1 cpuCount, String
guestId, String alternateGuestName, OSCustomizationSpecInterop customization, Boolean
allowNested, Boolean isRequestedAsync, Nullable`1 haRestartPriority, Nullable`1
haIsolationResponse, Nullable`1 drsAutomationLevel, Boolean toTemplate, Nullable`1
vmSwapfilePolicy, Nullable`1 version)
at VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVM.DoWork(VIAutomation client, List`1
moList)
TargetObject : HostSystem-host-1324
CategoryInfo : ResourceUnavailable: (HostSystem-host-1324:String) [Set-VM], ViError
FullyQualifiedErrorId : Client20_VmHostServiceImpl_TryGetHostEnvironmentBrowser_EnvironmentBrowserNotFound,VMware.VimAu
tomation.ViCore.Cmdlets.Commands.SetVM
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1}
Is there a solution for this problem?