Microsoft SharePoint Server and Foundation Detection

Summary
Detection of installed version of Microsoft SharePoint Server and Microsoft SharePoint Foundation. The script logs in via smb, searches through the registry and gets the version and sets the KB.
Detection
registry version check