How do I create a Robocopy script in KACE SMA?

Hey guys....I'm still learning the SMA but currently we have on our file servers running "Windows Command Scripts" that use Robocopy to copy the local users desktop / documents to a network location in their user backup folders.  I'm trying to figure out a way to use KACE to create scripts to do this instead.  Has anyone had experience using Robocopy in KACE or is it not supported and is there another / better method?


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: Danishtj 2 months ago
Yellow Belt
  1. Here are the steps to create a Robocopy script:

  2. Step 1: Just be sure that you do not get the source and destination the wrong way around. ...
  3. Step 2: Find the control panel.
  4. Step 3: Start the Schedule Tasks.
  5. Step 4: Create a new basic task.
  6. Step 5: Name the new task.
  7. Step 6: Select when to run the task.
Posted by: iguthrie 6 months ago
Senior White Belt

Top Answer

You should be able to use Robocopy in an Online Shell Script. Change the script type from Online Kscript to Online Shell Script, and make sure to set it to run as Logged-in user so the environment variables work for the user.

For example, to copy the users desktop, you can enter something like this in the Script Text field:

robocopy %userprofile%\Desktop "\\NetworkPath\Desktop" /MIR

Enter a file name that ends with .bat in the Script File Name field to make it a batch file.

  • Thanks for the reply! I'll give your suggestions a shot! - bkieft 6 months ago
  • I got it to run just how you said to try, but if I want to do both Desktop / Documents do I just copy and create a new line same syntax? How would I put a "Wait for completion" between the 2 before the next robocopy command tries to run? I just copied it beneath it but the script isn't showing succeeded but the files look like they copied to both destinations from the correct sources. - bkieft 6 months ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ