I’ve seen an interesting question on stackoverflow: how do you copy a file between machines using WMI? I never thought this is possible, but it seems it is.

One option (without WMI) is to use a specially formatted path:http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/dbcc2be6-c41a-4491-8f0d-3e5eee58b2ad/ (File.Copy(@”\\toshiba-win2003\C$\windows\microsoft.net\framework\v2.0.50727\config\machine.config”,@”i:\machine.config”);)

The other option (not yet validated) is to use Win32_Directory Copy method (http://msdn.microsoft.com/en-us/library/Aa389347). We’ll check and post an update as soon as possible.

Advertisements