PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

Can't create DEDICATED pool - deleteOrRefreshMachineAfterLogoff exception

Open mattivoxy opened this issue 4 years ago • 5 comments

Error when calling new-hvpool:

Exception calling "Desktop_Create" with "2" argument(s): "ExceptionType : VMware.Hv.InvalidArgument ErrorMessage : deleteOrRefreshMachineAfterLogoff can only be set for floating user assignment ParameterName : desktopSettings.logoffSettings.deleteOrRefreshMachineAfterLogoff" At C:\Scripts\modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:4905 char:7

  •   $id = $desktop_helper.Desktop_create($services,$desktopSpecObj)
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : VimException

This happens whether or not I specify this value "deleteOrRefreshMachineAfterLogoff". If I switch the a FLOATING pool type, it works, but I need it working on dedicated.

mattivoxy avatar Aug 25 '20 18:08 mattivoxy