CLASS MACHINE
CATEGORY "VMware Horizon URL Redirection"
   EXPLAIN "VMware Horizon Url Redirection configuration settings"

   ; ------------------------------------------------------------------------------
   ; IE policy: Prevent users from changing URL Redirection plugin loading behavior
   ; ------------------------------------------------------------------------------
   POLICY "IE policy: Prevent users from changing URL Redirection plugin loading behavior"
      EXPLAIN "Determines whether users can disable URL Content Redirection."
      KEYNAME "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID"
      VALUENAME "{B2DC5663-8716-4D76-8305-C637429CCD7B}"
	  VALUEON "1"
      VALUEOFF "2"
   END POLICY

   ; ------------------------------------------------------
   ; IE policy: Automatically enable URL Redirection plugin
   ; ------------------------------------------------------
   POLICY "IE policy: Automatically enable URL Redirection plugin"
      EXPLAIN "Determines whether newly installed Internet Explorer plug-ins are automatically activated."
      KEYNAME "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext"
      VALUENAME "IgnoreFrameApprovalCheck"
	  VALUEON NUMERIC 1
	  VALUEOFF NUMERIC 0
   END POLICY

   ; --------------------------------------------------
   ; Checkbox to enable/disable url redirection feature
   ; --------------------------------------------------
   POLICY "Url Redirection Enabled"
      EXPLAIN "Determines whether this feature is turned on. This setting is enabled by default. You can use this setting to disable the feature even if the component has been installed."
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection"
      VALUENAME "Enabled"
	  VALUEON NUMERIC 1
	  VALUEOFF NUMERIC 0
   END POLICY

   ; --------------------------------------------------------
   ; Settings for for filtering several common url protocols
   ; Repeat the same for each protocol that needs filtering.
   ; --------------------------------------------------------
   POLICY "Url Redirection Protocol 'http'"
      EXPLAIN !!HelpString
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection\http"

      ; -----------------------------------------------------
      ; Broker IP or broker host name for remote browser
      ; (Ex: '10.10.101.101' or 'mybroker.vmware.com')
      ; -----------------------------------------------------
      PART "brokerHostname" EDITTEXT
      VALUENAME "brokerHostname"
      END PART

      ; --------------------------------------------------------------
      ; Remote application or pool Id
      ; (Ex: 'Internet Explorer' or 'Desktop Pool' on broker admin page)
      ; --------------------------------------------------------------
      PART "remoteItem" EDITTEXT
      VALUENAME "remoteItem"
      END PART

      ; --------------------------------------------------------------
      ; Client and Agent rules work together for URL redirection using
      ; regular expression and is explained as below.
      ;
      ; With the intercepted URL, the client checks against the
      ; agentRules for a match to redirect URL. If it matches, then
      ; the client redirects the URL to the agent only if the
      ; clientRules for that URL does not match (avoid loops).
      ;
      ; If there is no match or the rules match both agent and client
      ; rules, then the URL is not redirected.
      ;
      ; The inverse of the above logic is used on the Agent.
      ;
      ; Following are some of the common rules that can be used:
      ; "*.xyz.com" - matches all urls with 'xyz.com' domain
      ; ".*" - matches everything.
      ; ""   - matches nothing (empty).
      ; "*.eng.xyz.com;*.xyz.com" - '*.eng.xyz.com' is redundant.
      ;
      ; --------------------------------------------------------------

      ; --------------------------------------------------------------
      ; Client regular expression rules for url redirection
      ; --------------------------------------------------------------
      PART "clientRules" EDITTEXT
      VALUENAME "clientRules"
      END PART

      ; --------------------------------------------------------------
      ; Agent regular expression rules for url redirection
      ; --------------------------------------------------------------
      PART "agentRules" EDITTEXT
      VALUENAME "agentRules"
      END PART
   END POLICY

   ; -----------------------------------------------------------------
   ; Settings for filtering any other custom url protocols
   ; (Ex: 'http', 'https', 'skype', 'callto', 'mailto', 'tel', etc)
   ; It should use the same format as used for http/https,
   ; but of course it have to be specific regular expression
   ; rules for each protocol
   ; -----------------------------------------------------------------

   ; --------------------------------------------------------
   ; https protocol
   ; --------------------------------------------------------
   POLICY "Url Redirection Protocol 'https'"
      EXPLAIN !!HelpString
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection\https"
      PART "brokerHostname" EDITTEXT
      VALUENAME "brokerHostname"
      END PART
      PART "remoteItem" EDITTEXT
      VALUENAME "remoteItem"
      END PART
      PART "clientRules" EDITTEXT
      VALUENAME "clientRules"
      END PART
      PART "agentRules" EDITTEXT
      VALUENAME "agentRules"
      END PART
   END POLICY

   ; --------------------------------------------------------
   ; callto protocol
   ; --------------------------------------------------------
   POLICY "Url Redirection Protocol 'callto'"
      EXPLAIN !!HelpString
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection\callto"
      PART "brokerHostname" EDITTEXT
      VALUENAME "brokerHostname"
      END PART
      PART "remoteItem" EDITTEXT
      VALUENAME "remoteItem"
      END PART
      PART "clientRules" EDITTEXT
      VALUENAME "clientRules"
      END PART
      PART "agentRules" EDITTEXT
      VALUENAME "agentRules"
      END PART
   END POLICY

   ; --------------------------------------------------------
   ; email protocol
   ; --------------------------------------------------------
   POLICY "Url Redirection Protocol 'email'"
      EXPLAIN !!HelpString
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection\email"
      PART "brokerHostname" EDITTEXT
      VALUENAME "brokerHostname"
      END PART
      PART "remoteItem" EDITTEXT
      VALUENAME "remoteItem"
      END PART
      PART "clientRules" EDITTEXT
      VALUENAME "clientRules"
      END PART
      PART "agentRules" EDITTEXT
      VALUENAME "agentRules"
      END PART
   END POLICY

   ; --------------------------------------------------------
   ; Any additional protocol add here. If no additional protocol
   ; needed then remove this:
   ; --------------------------------------------------------
   POLICY "Url Redirection Protocol '[...]'"
      EXPLAIN !!HelpString
      KEYNAME "SOFTWARE\VMware, Inc.\VMware VDM\URLRedirection\[...]"
      PART "brokerHostname" EDITTEXT
      VALUENAME "brokerHostname"
      END PART
      PART "remoteItem" EDITTEXT
      VALUENAME "remoteItem"
      END PART
      PART "clientRules" EDITTEXT
      VALUENAME "clientRules"
      END PART
      PART "agentRules" EDITTEXT
      VALUENAME "agentRules"
      END PART
   END POLICY

END CATEGORY

[strings]
HelpString="For all URLs that use this protocol, specifies the URLs that should be redirected.\nFor example, if you set agentRules to .*.mycompany.com then all URLs that have "mycompany.com" in them are redirected to a remote desktop or remote application. You can further specify which connection server to use by setting brokerHostname, and you can specify which desktop or application pool to use by setting remoteItem to the display name of the pool, as shown in View Administrator.\nIf you set clientRules to .*.mycompany.com then all URLs that have "mycompany.com" in them are redirected to the Windows-based client and opened in the default browser on the client.\n\nNote\n\nAs a best practice, set the same rules for the HTTP protocol and the HTTPS protocol. That way, if a user types a partial URL, such as mycompany.com into Internet Explorer, if that site automatically redirects from HTTP to HTTPS, the URL Content Redirection feature will work as desired. In this case, if you set a rule for HTTPS but not HTTP, the partial URL that the user types would not be redirected."
