About the FileSync.ps1 Script - sjwaterco/FileSyncScript GitHub Wiki

The FileSync.ps1 script performs the file sync operation on the client-side. It takes the path to a configuration XML document as an argument. The script utilizes robocopy.exe (a standard utility in Windows since Windows 7) to perform the copy operation.

The script can be executed in two modes: interactive and non-interactive. In interactive mode, the script displays information to a user regarding the copy process. In non-interactive mode, the script performs all work in the background and does not generate a user window, suitable for use in a Scheduled Task.

Invoking the Script

  • Interactive, using a UNC path: powershell.exe -File "\\path\to\FileSync.ps1" "\\path\to\config.xml"
  • Non-interactive, using a UNC path: powershell.exe -NonInteractive -File "\\path\to\FileSync.ps1" "\\path\to\config.xml"