I have been trying to develop a script to backup the Win XP "Documents and Settings" directory on computers in a pilot group we are getting ready to deploy Windows 7 to.
We have informed them to back up their own data and only doing this as a fail safe. I am not getting very far with this script and to be honest am at the end of a development phase that I can't think straight after. This is what I have so far. If someone could help me complete it I'd really appreciate it.
for /f %%a in (PCList.txt) do (
for /f %%C in (PCList.txt) do (
robocopy "\\%%C\C$\Documents and Settings\" ^
\\<serverpath>\%%C\ /MIR /W:1 /R:1 ^
/XD "\\%%C\C$\Documents and Settings\Administrator" ^
"\\%%C\C$\Documents and Settings\Default User" ^
"\\%%C\C$\Documents and Settings\All Users" ^
"\\%%C\C$\Documents and Settings\%username%"