--- vboxshell.py	2011-02-17 10:11:26.000000000 -0500
+++ vboxshell.py	2011-03-23 06:14:30.421875000 -0400
@@ -30,8 +30,23 @@
 import re
 import platform
 from optparse import OptionParser
 
+if platform.system() == 'Windows' or platform.system() == 'Microsoft':
+  try:
+    import win32api
+  except:
+    print "ERROR: pywin32 library cannot be loaded."
+    exit()
+  fixed_file_info = win32api.GetFileVersionInfo(win32api.__file__, '\\')
+  pywin32_ver = fixed_file_info['FileVersionLS'] >> 16
+  if pywin32_ver < 216:
+    print "Found pywin32 version:", pywin32_ver
+    print "ERROR: pywin32 version is too old, please install v216 or newer"
+    exit()
+  else:
+    print "Found pywin32 version:", pywin32_ver
+
 g_batchmode = False
 g_scripfile = None
 g_cmd = None
 g_hasreadline = True
@@ -3254,9 +3269,9 @@
         ctx['perf'] = None
 
     home = getHomeFolder(ctx)
     checkUserExtensions(ctx, commands, home)
-    if platform.system() == 'Windows':
+    if platform.system() == 'Windows' or platform.system() == 'Microsoft':
         global g_hascolors
         g_hascolors = False
     hist_file=os.path.join(home, ".vboxshellhistory")
     autoCompletion(commands, ctx)
