Posted on 2010-11-10
I have a terminal server that has an application that we want to export on a regular basis. A robocopy will work find on it, but the source is by default every user's document folder. I know there is a exclusion, but I do not want to write the source custom for every user that has a profile on the server (about 40 of them), and I also only need two specific folders in their Document folder. It would also be handy because as people join the team, I do not want to have to also remember to add to this batch.
the folders in question are found in "c:\documents and settings\%username%\folder1" and "folder2". I tried exclusions, but it wants the entire path to exclude, which is the same problem as the the inclusive batch, meaning I do not want to type out everyone's user names into this script nor modify it when new people join the team.