View Only
  • 1.  Error with ViewDBChk

    Posted Aug 25, 2016 08:09 AM


    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 ?