I have a linux server with
winexe package installed. It's the same as PSExec, and everything works okay when running simple commands, but when I run it with this command below I get a parsing error!
winexe -U user%password //host "powershell -Command (New-Object System.Net.WebClient).DownloadFile("http://host/filename.iso","c:\file.iso")"
Can anyone figure what's wrong with this? Is it's cause a conflict in the quotes around the url and file name, with the quotes around the whole command?