Microsoft Forefront Unified Access Gateway (UAG) Detection

Summary
Detection of installed version of Microsoft Forefront Unified Access Gateway. The script logs in via smb, searches for Microsoft Forefront Unified Access Gateway in the registry and gets the version from registry.
Detection
registry version check