Ambily Biju

Ambily Biju

  • 2.2k
  • 18
  • 1.8k

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

Jun 10 2021 5:38 AM

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)