PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Can't create DEDICATED pool - deleteOrRefreshMachineAfterLogoff exception
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.