1. Navigate to Client Configuration | Profiles | User or Computer
2. Expand the Profile that will be used.
3. Select the “Application Launcher” object.
4. Click “Add” to create a new element.
5. Element configuration should be setup like the example below:
File name…: XCOPY.exe
Arguments : "Source" "Destination" /parameters
Note: If the option “Run as Administrator” is used then Desktop Authority will execute the application not as the logged on user but as the account used when the Desktop Authority Administrative Services was configured. There were two accounts that needed to be entered for that service when it was configured. Run as Administrator uses the Domain User account that was assigned. Therefore, be sure the Administrative Services’ Domain User account has access to any network paths or shares needed during the copy process.
6. Configure the appropriate Validation Logic/Timing.
8. Replicate changed files.
A list of XCOPY’s syntax, parameters, and examples can be found here
Below are examples of other common configurations using XCOPY:
Note: Always test your syntax first by performing the XCOPY manually on a workstation. Desktop Authority is only able to automate the tasks that can be performed manually.
Example 1. Copying all shortcuts from a network share to the client workstation using the Dynamic Variable for the Start Menu folder.
Arguments: "\\Server\Share\*.lnk" "$ShellStartMenu"
Example 2. Copying all files beginning with “ABC” from a network folder to the client workstation only if the files are newer.
Arguments: "\\Server\Share\ABC*.*" “C:\Folder" /D
Example 3. Copying all files with the .XYZ file extension from a network folder to the client workstation.
Arguments: "\\Server\Share\*.XYZ" “C:\Folder”