title: python script to collect the hostname of remote windows server
body: <p>I have python 2.7 installed on my windows 7 machine.I wrote a script to connect to the remote windows server and it worked fine. Now i want to execute a command on the remote server and collect the hostname.
  I know how to collect local machine details but how to collect remote machine info??
  Any help would be really appreciated.
  here's the script</p>
  
  <p>c = wmi.WMI(self.ip, user=self.username, password=self.password)</p>