title: Trying to copy file from one XP PC to another using WMI, since RPC and UNC are not available
body: <p>I'm new to VBScript. I cannot find a way to copy files from one XP host to another using WMI in a VBS. The usual way of copying files (RPC - Remote Procedure Call, SMB, UNC) are not available to several hosts but WMI is available to all hosts, and I need to copy files from my admin host to a target Windows host. I thought I'd find some sample code out there but I've found no info on it. Haven't found anything telling me it can't be done, either.</p>
  
  <p>The source files are an executable and 'test1.txt' in my admin computer's 'F:\TEMP' folder. I want to put the files on remote host HOST1's 'C:\TEMP' folder. I have full admin rights on both hosts. Here is what I have so far, just for one file (to keep the testing simple):</p>
  
  <pre><code>strComputer = "HOST1"
  Set objWMIService = GetObject("winmgmts:" _
      &amp; "{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\cimv2")
  Set colFiles = objWMIService.ExecQuery( _
      "Select * from Win32_Directory where Name = 'c:\\temp'")
  For Each objFiles in colFiles
      errResults  = objFolder.Copy("f:\temp\test1.txt")
      Wscript.Echo errResults
  Next
  </code></pre>