usage = 'testDCOM.py - Simple DCOM test\nUsage: testDCOM.py serverName\n\nAttempts to start the Python.Interpreter object on the named machine,\nand checks that the object is indeed running remotely.\n\nRequires the named server be configured to run DCOM (using dcomcnfg.exe),\nand the Python.Interpreter object installed and registered on that machine.\n\nThe Python.Interpreter object must be installed on the local machine,\nbut no special DCOM configuration should be necessary.\n'
import pythoncom
import win32com.client as win32com
import win32api
import string
import sys
def test(serverName):
if string.lower(serverName) == string.lower(win32api.GetComputerName()):
print 'You must specify a remote server name, not the local machine!'