Listing 1: SavePC.bat @Echo Off Cls Echo Delete Old Profiles(older than 62 days) :: BEGIN CALLOUT A Delprof /q /i /c:\\%1 /d:62 :: END CALLOUT A Echo ... Setlocal :: BEGIN CALLOUT B Set BackupFolder=\\ProfileBackupComputer\ProfileBackupShare$ :: END CALLOUT B If Exist \\%1\c$\winnt Set WindowsFolder=winnt If Exist \\%1\c$\windows Set WindowsFolder=windows Echo Copying files needed for registry backup ... Echo ... Copy /y /z kix32.exe \\%1\c$\%WindowsFolder%\system32\kix32.exe Copy /y /z kx32.dll \\%1\c$\%WindowsFolder%\system32\kx32.dll Copy /y /z SavePC.kix \\%1\c$\%WindowsFolder%\system32\SavePC.kix Copy /y /z DelTempFiles.vbs \\%1\c$\%WindowsFolder%\system32\DelTempFiles.vbs Copy /y /z SaveProfile.bat \\%1\c$\%WindowsFolder%\system32\SaveProfile.bat Echo ... Echo Delete temporary files and execute Profile Registry Backup on remote computer. Echo ... :: BEGIN CALLOUT C psexec \\%1 -d -s "SaveProfile.bat" :: END CALLOUT C Echo ... Echo Copying all profiles files Echo ... md %BackupFolder%\%1 :: BEGIN CALLOUT D Robocopy "\\%1\c$\Documents and settings" "%BackupFolder%\ %1\Documents and Settings" /s /e /sec /ETA /r:0 /XF "*.tmp" /XD "\\%1\c$\Documents and settings\All Users" "\\%1\c$\Documents and settings\Default User" :: END CALLOUT D Echo ... Echo Backing up Registry file into the backup folder :: BEGIN CALLOUT E Copy /y /z \\%1\c$\ProfileList.reg %BackupFolder%\%1\ProfileList.reg :: END CALLOUT E Echo ... Endlocal Echo We just finished to load all user profiles from %1 Echo Check that all the files are present in the backup directory Echo Try to load backup files to the user system after computer installation Pause