Copying or moving files on Windows systems

When using a Centos Ansible control machine connecting to Windows server, is there a way to copy/move files on the Windows system? Win_copy works well for copying to the Windows system but doesn't seem to be able to fit this use. In particular I have tried moving/copying files using raw,win_command and win_shell with the catch that the file paths have spaces in them. i.e copy \*.* c:\program files\app\*.*

The win_robocopy extras module should probably cover your needs…

Another thing that might trip you up is that C:\Program Files\ is rather more locked down in modern windows versions than it was in older ones, so you might have trouble copying to that location if you don’t have full admin privs.

I don’t recall specifics now but I know I wound up installing some .exe files not in Program Files as a result of this change during a S2003 to 2012R2 migration.

Jon