Change View Desktop Pool settings (Auto logoff after disconnect) through PowerShell

Today I had to set a specific View Desktop pool setting, in my case “Auto logoff after disconnect” on several pools. Because View Administrator has no integrated possibility to select multiple pools and set multiple settings you can use e.g. PowerShell to change these settings.

If you want to change settings for a specific pool use the following commands:

Returns all pools in the View environment

This is a short excerpt from the output

getpool01

When you want to update the “Auto Logoff after disconnect” setting for a specific poll you can go with this (both are legit cmdlets):

or

Both one-liner changes the “Auto logoff after disconnect” setting to 4 hours.

If you want to change all pools to this setting you can use this:

Other possible values are Never, Immediately or an integer number of minutes.

The following gives you all parameters which can be used:

I’m using in my environment Linked Clone pools so Update-AutomaticLinkedClonePool is the right choice for me. When using e.g. manual pools then Update-ManualPool is the right choice.

Leave a Reply

Your email address will not be published. Required fields are marked *

*