Ambily Biju

Ambily Biju

  • 1.7k
  • 22
  • 3.7k

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)