vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
765 stars 609 forks source link

VMware.Hv.Helper - Remove-HVMachine - Bypass/Limit Log Off Session Retries #583

Open mattstermind01 opened 2 years ago

mattstermind01 commented 2 years ago

Is your feature request related to a problem? Please describe.

When executing Remove-HVMachine, it attempts to log off the user. If the user is connected via RDP for example and not Horizon, it retries until it times out which lengthens script completion and clutters up the powershell output window.

Describe the solution you'd like

Is there already a way to limit the number of attempts for it to log the user off? Is there a force logoff option that is not shown in the docs for this module? If not, I would like to request this feature to limit the logoff attempts when trying to remove a desktop from a Horizon pool. Thanks.

Describe alternatives you've considered

No response

Additional context

No response