The Forefront Unified Access Gateway (UAG) Client Endpoint Detection component uses the default script Detection.vbs to detect applications on a client endpoint, based on the presence of files and registry keys. The Detection.vbs script file is located in the folder ...\Microsoft Forefront Unified Access Gateway\von\InternalSite.

Note:
You should not customize this default file because it is signed.

You can create additional custom detection scripts using the CustomUpdate mechanism (described in About the CustomUpdate mechanism). The following procedure describe the steps required to add custom detection scripts; these steps are also described in the file ...\Microsoft Forefront Unified Access Gateway\von\InternalSite\samples\Detect.inc.

To add custom detection scripts

  1. Copy the ...\Microsoft Forefront Unified Access Gateway\von\InternalSite\samples\Detect.inc file to the ...\Microsoft Forefront Unified Access Gateway\von\InternalSite\inc\CustomUpdate folder, and rename it as required.

  2. For each new detection script that you want to define, add the following line to your new Detect.inc file:

      Copy Code
    g_scriptList("/InternalSite/CustomUpdate/<YourScriptFilename.vbs") = false
    
  3. Place your detection scripts in the ...\Microsoft Forefront Unified Access Gateway\von\InternalSite\CustomUpdate folder.

    Tip:
    You can reuse code from the default Detection.vbs script when creating your own custom detection scripts.