Copy-Item -path c:\folder –destination \\server\share
Basic PS command, does exactly what it should. However the files that are being copied over daily are config files for a database we use on one of our Linux boxes. (This is presented through a Samba share)
However, I need it to copy files over nightly, but place them in subfolders based on the date they were copied.
Any suggestions on how to accomplish this would be most appreciated. Thanks.