1
Answer

How to copy files from one windows server to another at scheduled time

Ambily Biju

Ambily Biju

3y
801
1

Am created one powershell script like below


$source = 'C:\inetpub\wwwroot\TestSite\'
$destination = '\\serverip\sharefoldername'

Copy-Item -Path $source -Destination $destination -Recurse -force

and save this script to one folder. And then scheduled this powershell script on task scheduler, its shows running but didnt copy any files
 

Answers (1)