i was trying to remote from a windows machine (this machine has python26 installed) to another windows machine (this machine doesnt has python installed) using python script. i googled through and found out that WMI module is very good. so i tried using this. below is my code :
class WindowsMachine:
def __init__(self, ip, username, password, remote_path=REMOTE_PATH):
self.ip = ip
self.username = username
self.password = password
self.remote_path = remote_path
try:
print "Establishing connection to %s" %self.ip
self.connection = wmi.WMI(self.ip, user=self.username, password=self.password)
print "Connection established"
except wmi.x_wmi:
print "Could not connect to machine"
raise
but im getting error message : wmi.x_access_denied". i have googled up for a solution for this but didnt get a proper answer. can someone please help? anyone encountered this before?