Customizing the endpoint components detection script
Updated: April 8, 2010
Applies To: Unified Access Gateway
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.
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
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.
For each new detection script that you want to define, add the following line to your new Detect.inc file:
g_scriptList("/InternalSite/CustomUpdate/<YourScriptFilename.vbs") = false
Place your detection scripts in the ...\Microsoft Forefront Unified Access Gateway\von\InternalSite\CustomUpdate folder.
You can reuse code from the default Detection.vbs script when creating your own custom detection scripts.