Copy Files and Folders

SOTI MobiControl
Windows

Easily manage and automate file transfers and script execution on your corporate Windows devices with SOTI MobiControl. Use Send Script and Task Scheduler to copy files/folders securely, automate routine tasks, and ensure data is moved to safe locations minimizing the risk of data breaches and simplifying device management at scale.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Copy files if the file doesn’t exist in destination

1 Copy-Item -Path<path to be copied from> -Destination<Path to be copied to>

Copy files by overwriting the destination folder

1 Copy-Item -Path<path to be copied from> -Destination<Path to be copied to> -Force

Copy folder

1 Copy-Item -Path<path of folder> -Destination<path of destination folder> -Recurse

Was this helpful?

Need more help?
Ask Community