VMware Cloud Community
MWIProd
Contributor
Contributor

Error with ViewDBChk

Hello,

I want to delete VM using ViewDBChk inside Powershell script from Workstation.

This code :

$Session = New-PSSession -ComputerName $ViewBroker

Invoke-Command -Session $Session -ScriptBlock { Add-PSSnapin VMware.View.Broker }

Invoke-Command -Session $Session -ScriptBlock { ViewDBChk --removeMachine --machineName VMXXXXXX --desktopName PoolXXXXX --force --noErrorCheck }

gives me this error :

Error occurred during initialization of VM

Could not reserve enough space for object heap

When I use this code directly on Powershell window in View broker, I don't have error.

Do you know Why ?

ESXi 6.0.0 View 6.2.3 PowerCLI 6.5.1
0 Kudos
0 Replies