ejabberd Version Detection (Windows)

Summary
This script finds the installed ejabberd version and saves the version in KB. The script logs in via smb, searches for ejabberd in the registry and gets the version from 'Version' string from the registry.
Detection
registry version check