The Update-GlobalSetting command can be used to update a number of different Horizon global settings. The following example command enables and configures the forced logoff and prelogin messages:
Update-GlobalSetting -DisplayPreLogin $true -PreLoginMessage “Unauthorized users prohibited” -DisplayLogoffWarning $true -ForcedLogoffMessage “You will be logged off”
The following settings can be set using the Update-GlobalSetting command:
- DisplayLogoffWarning: Displays a warning to the Horizon client prior to a forced logoff. This value should be contained within quotes.
- DisplayPreLogin: Displays a login message prior to the Horizon client logging in to the connection server. This value should be contained within quotes.
- ForceLogoffAfter: Sets how long you need to wait in minutes after the warning message appears to force logoff the Horizon client.
- ForceLogoffMessage: The text for the force logoff message. This value should be contained within quotes.
- MessageSecurityMode: Sets the security level for communication between Horizon components. The options include Disabled, Mixed, and Enabled (the default).
- PreLoginMessage: The text for the prelogin message. This value should be contained within quotes.
- ReauthenticateOnInterrupt: Forces the Horizon client to reauthenticate after connection interruption. The options are $true or $false (the default).
- SessionTimeout: The timeout value in minutes for inactive Horizon client sessions.
- UseSslClient: Forces SSL Horizon client connections. The options are $true or $false (the default).
- WidgetPolling: Enables automatic status updates in the Horizon administrator. The options are $true (the default) or $false.